快捷键设置
IDEA用来开发后端,sublime用来开发前端,但是快捷键方式不一样
在sublime中设置鼠标+键盘组合快捷方式
Linux - create "Default (Linux).sublime-mousemap" in ~/.config/sublime-text-3/Packages/User
Mac - create "Default (OSX).sublime-mousemap" in ~/Library/Application Support/Sublime Text 3/Packages/User
Win - create "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User
我用的是typescript函数跳转插件,在.sublime-mousemap中我用ctrl+shift+鼠标左键跳转函数,ctrl+shift+右键返回原来位置
[
{
"button": "button1",
"count": 1,
"modifiers": ["ctrl","shift"],
"press_command": "drag_select",
"command": "typescript_go_to_definition",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
]
},
{
"button": "button2",
"count": 1,
"modifiers": ["ctrl","shift"],
"command": "jump_back"
}
]
常用快捷键
ctrl+f
ctrl+shift+f 查找文件内容
ctrl+shit+p 插件安装、喜好设置
ctrl+p 查找文件