Love at First sight sublime

Source: Internet
Author: User

Open Preferences-Setting-user and add the following code

{    "font_size14,    "ignored_packages[],    "auto_completetrue,    "auto_match_enabledtrue}

"Auto_complete": true,
"Auto_match_enabled": True
These two are auto-complete codes .

"Ignored_packages": []
After adding this sentence, just press the ESC key on the keyboard to enter Vim mode , you can use Vim shortcut keys.

function Jump
Sublime Text 2 + ctags

1, first to http://sublime.wbond.net/Package%20Control.sublime-package download package Control.sublime-package
2, then open Preferences->browes Packages, display the current directory is Packages, skip to the previous level of the directory see installed Packages, the package just downloaded The Control.sublime-package file is placed in the installed Packages folder.
3, restart the sublime, test installation has been successful:
Under Sublime shortcut key ctrl+shift+p, enter install, if there is a display of the installation list, it indicates that the installation was successful.
4, under Sublime shortcut key ctrl+shift+p, enter install, and then enter the Ctags plug-in under the installation list, select and then install.
5, after successful installation, using Ctrl+t, ctrl+r two consecutive key combinations, create. Tags project symbol index file (at this point sublime Text 2 automatically calls the first step of the installation of Ctags.exe).. tags files are created, Select the directory where the. tags file is located in the current project directory, you can use shortcut keys for easy code browsing.

There are two ways to build a. Tags method:
1.sublime Software, the Function menu File->open folder open the target folders to be analyzed, click Open any program file from the left sidebar, press crtl+t, ctrl+r key combination (ie: the Uplink function menu find->ctags- >rebuild tags), you can see that the. Tags index file is generated in the destination folder, as well as the. Tags_sorted_by_file.
2.win+r: Input command cmd, enter. CD instruction enter the target folder to be analyzed, enter: Ctags-r-F. tags
Manually generate a. tags file. Unlike Method 1, the. Tags_sorted_by_file is not generated and the difference has not been found in use.

ctags Usage
1. Rebuilding Ctags index Rebuild_ctags (ctrl+t,ctrl+r)
2. Jump to function definition navigate_to_definition (ctrl+t,ctrl+t) or (ctrl+shift+.) or (ctrl+shift+ mouse left_click)
3. Jump back to Jump_back (ctrl+t,ctrl+b) or (ctrl+shift+,) or (ctrl+shift+ mouse right_click)
4. Jump to Last modified Jump_back to_last_modification (CTRL+T,CTRL+M)
5. Find Show_symbols by Function index (ALT+S)

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Love at First sight sublime

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.