Step 0: Install Sublime
For Sublime-Text-2:
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
For Sublime-Text-3:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
Step 1: Install Package Control
- Open Sublime => Ctrl + ~
- Copy either of these two at the text editor at the bottom.
Sublime text 3
[code]import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
Sublime text 2
[code]import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')
- Restart Sublime.
Step 2: Install Ctags Plugin
- Go to: Preference -> Package Control -> Install Package
- Input ctags and install it.
- sudo apt-get install exuberant-ctags
Step 3: CScope
...
ref:
http://askubuntu.com/questions/172698/how-do-i-install-sublime-text-2-3
https://www.granneman.com/webdev/editors/sublime-text/packages/how-to-install-and-use-package-control/
https://packagecontrol.io/installation#st2
http://www.lai18.com/content/2459203.html?from=cancel
http://www.cnblogs.com/bluestorm/p/5680527.html
No comments:
Post a Comment