1. Install the package Control:
Http://jingyan.baidu.com/article/d3b74d64a302631f77e609fa.html
2. Install the Ctags plugin:
Http://jingyan.baidu.com/article/656db9189c9761e381249cf5.html
3. Installing the Cscope Plugin
1. Installing the Cscope plugin via the Preference package Control, install
2. Install Cscope:
sudo apt-get install cscope
cscope -b -q -k -R #creat cscope.out
4. Shortcut keys:
Command Panel:ctrl + \
Look up Symbol:ctrl + L Ctrl + S
Symbol Definition:ctrl + L Ctrl + D
View the source code how to import the source:
Click project--Select Add Folder to Project, and then select the Project folders we view, right-click on the folder, and then select the Ctags:rebuild Tags menu item, you can generate the. tags file so that when we view the source code , the cursor is placed on a function, click ctrl+shift+ left mouse button, you can achieve jump.
Excerpts from other blogs:
(1) ST3 using Ctrl+p to search for files, use a fuzzy match, not like Si must be spelled correctly in sequence.
(2) ST3 support Ctrl+tab mode, easy to switch between multiple files
(3) Alt+o enables fast switching between header files and source files
Ctrl+shift+p: Open command line
Ctrl+p: Search for files in project, support fuzzy matching
Ctrl+r: List all the functions in the current file, the same as ctrl+p after pressing an @ symbol, you can actually interpret Ctrl+r as a ctrl+p shortcut key
ctrl+r+ ': '/' # ': first delete the previous ' @ ', then ': ', then enter the line number, jump to the specified line, then ' # ', search string, note, support the use of combination, for example, can be in ' @ '/': '/' # ' before the file name, in the specified file for the corresponding operation After ctrl+p, enter [email protected], directly listed the file_name file inside the function
Ctrl+f: Find keywords in current file
Ctrl+shift+ left mouse button: Check function, position function definition position
Ctrl+t: Press two times T, locate function definition place, same as above ctrl+shift+ left mouse button
Ctrl+shift+f: Search in all Files
Multiple selections, press CTRL and click where you want the cursor to appear
F11: Fullscreen
SHIFT+F11: fullscreen-free mode, editing only the current file
Ctrl+m cursor to start or end position within parentheses
Ctrl+shift+m Select the contents in parentheses (press and hold-continue to select the parent bracket)
ESC Exit cursor Multiple line selection, exit search box, command box, etc.
Ctrl+d Select the text that the cursor occupies, and continue to select the next same text
Alt+f3 selected text Press the shortcut key, you can select all the same text at once to edit simultaneously. Give a chestnut: quickly select and change all the same variable names, function names, etc.
Under Ubuntu use Sublime text 3 install plug-ins package control+ctags+cscope after viewing the source weapon