Sublime Text 2 Installing the CATGS function tracking plugin

Source: Internet
Author: User




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 the execution, wait a moment to see the lower left corner of the prompt installation success is good


In the open file, you will have a navigate to Definition menu item in the right-click


Right-click on the project/project file on the left side of the sidebar to see the Ctags:rebuild Tags menu item


At this point you can select a function and then right-click on the Navigate to Definition menu item and execute, and you will find a hint in the lower left corner: can ' t find any relevant tags file


This is because we did not configure the path to the Ctags executable file


Open the Readme.rst documentation for the CTAGS installation package to see that the official has told us where to download the Ctags executable package (mainly because the link is not sent here)


Unzip to a folder, such as: D:\SOFT\CATGS


Ctags Extract directory must be ASCII character path, so there can be no space or the path of Chinese, otherwise the Ctags executable path when you save the following error message: [Winerror 2] The system cannot find the specified file.


Open the menu in the Preferences menu, open the package control (plug-in manager) Settings->ctags->settings-user and Settings-default


Copy the configuration in default to user, then change the command configuration item to the Ctags executable path


At this point, the side of the left column of the project/project file right-click on the Ctags:rebuild Tags menu item, send pop-up a ctags run box, indicating that it can work properly


Then select a function, right-click to open the Navigate to Definition menu item and execute


At this time magically found sublime text has opened in a new tab of this function definition of the file is selected and positioned to the function definition of the place!


Okay, we did it!




Sublime Text 2 Installing the CATGS function tracking plugin




Related Article

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.