installation
Now can be installed through the PPA method to install sublime Text3, the personal feeling is a bit slow, after all, to update a bit.
sudo add-apt-repository ppa:webupd8team/sublime-text-3sudo apt-get updatesudo apt-get Install Sublime-text-installer
Configure plug-ins
After the installation is complete. is to configure some plugins.
The first thing to configure is ctags, use CTRL + ' shortcut key or open the command line through the View->show console menu, paste such as the following 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 ())
assuming it goes well. You can now see the package settings and the package control two menus under the Preferences menu.
by the way, put sublime Text2 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 (' Restart Sublime Text to finish installation ')
Open the sublime Text 2/3 software and open the package control (plug-in manager) in the Preferences (settings) menu
Open the menu and find the install packages, enter run, pull the plug-in list to wait a little
Enter Ctags carriage return to install. Just wait a moment and see the bottom left corner prompt to install successfully.
At this point you are in the open file. One more Navigate to Definition menu item in the right-click menus
Right-click on the project/project file on the left side of the sidebar to see the Ctags:rebuild Tags menu item, but that is not available in gray
Assuming that you run the Navigate to Definition menu item in the right-click menu, the lower-left corner will have the following hint:
Can ' t find any relevant tags file
This is because we have not installed Ctags
Next we start installing Ctags, which is quite simple, run the command sudo apt-get install Ctags
Right-click on the project/project file on the left sidebar to see that the Ctags:rebuild Tags menu item is available.
Then select a function, right-click to open the Navigate to Definition menu item and run, of course, here can use shortcut keys.
It would be fascinating to discover that sublime text has been opened in a new tab. This function defines the file selected and positioned where the function is defined!
Okay, we did it!
Some applications of Ubuntu on sublime Text3