Some applications of Ubuntu on sublime Text3

Source: Internet
Author: User
Tags sublime text


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.