官网:Sublime Text
命令行设置:
$ sudo rm /bin/subl #if needed
$ sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /bin/subl
插件管理:Package Control
Shortcut:
Command+Shift+P
: Command Palette; Type: "Package Control Install Package" to install Package- `Ctrl+`` : Show Console
Plugin:
- CTags: Goto Definition
- Install via Package Control, succeeded if there is a
Navigate to Definition
option in Right-Click - Try this:
- If got an error:
/usr/bin/ctags: illegal option -- R usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
- Solution:
brew install ctags
andSublime3 -> Preferences -> Package Settings -> CTags -> Settings - User:
:"command" : "/usr/local/bin/ctags"
- Copy content from Mouse Bindings-Default to Mouse Bindings-User, set
navigate_to_definition
'smodifiers
to key["command"]
- Ref:click
- Install via Package Control, succeeded if there is a
- Anaconda:
- SideBarEnhancements: Enhancements to Sublime Text sidebar. Files and folders
- Theme - Soda
Ref:
Run Python code from Sublime Text 2:
CMD + B
This would start your file in console which should be at bottom of the editor.
Ctrl + Break
orTools -> Cancel Build
. note:CTRL + C
will NOT work.What to do when
Ctrl + Break
does not work, go toPreferences -> Key Bindings - User
and paste the line below:Now, you can use
Ctrl+Shift+C
instead ofCTRL+BREAK