经常使用的快捷键如下:
ctrl + p: 打开某个文件
alt +g: 查看某个函数或者变量的定义
alt + --> 或者:alt + <--: 浏览上次或下次的历史记录
ctrl + alt+ f: 全工程搜索
ctrl + r: 查看本文件的某些symbol定义。
alt+o: 打开对应的.h或.c文件
ctrl + F2: bookmark功能
ctrl +g: 直接定位到文件的某一行
有用的插件:
ctags, cscope(比较了下,不太实用), Bracket Highlighter,
安装插件:
ctrl + shift +p 中跳出的对话框中输入 pcip就可以了。一会其会再次弹出一个插件的列表供我们选择。
Key Bindings- User:
我的例子:
[
{
"command": "navigate_to_definition",
"keys": ["alt+g"]
},
{
"command": "navigate_to_definition",
"keys": ["ctrl+shift+period"]
},
{
"command": "search_for_definition",
"keys": ["ctrl+q", "ctrl+y"]
},
{ "keys": ["alt+left"], "command": "jump_back" },
{ "keys": ["alt+right"], "command": "jump_forward" },
{
"command": "jump_prev",
"keys": ["ctrl+q", "ctrl+b"]
},
{
"command": "jump_prev",
"keys": ["alt+comma"]
},
{
"command": "rebuild_tags",
"keys": ["ctrl+q", "ctrl+r"]
},
{
"command": "show_symbols",
"context": [
{
"key": "selector",
"match_all": true,
"operand": "source -source.css",
"operator": "equal"
}
],
"keys": ["alt+s"]
},
{
"command": "show_symbols",
"args": {"type": "multi"},
"context": [
{
"key": "selector",
"match_all": true,
"operand": "source -source.css",
"operator": "equal"
}
],
"keys": ["alt+shift+s"]
},
{
"command": "show_symbols",
"args": {"type": "lang"},
"context": [
{
"key": "selector",
"match_all": true,
"operand": "source -source.css",
"operator": "equal"
}
],
"keys": ["ctrl+alt+shift+s"]
},
{ // override current default
"command": "transpose",
"context": [
{ "key": "num_selections", "operator": "not_equal", "operand": 1 }
],
"keys": ["ctrl+q"]
}
]