Skip to content

Sublime Text

Sublime Text Shortcuts

Key Description
Ctrl+Shift+P Command Palette
Ctrl+P Switch files
Shift+Command+A Align
Shift+F11 Distraction Free
Ctrl+r Function Crawling
Alt + click Multi-Selection
Ctrl+Shift+L Multi-Selection
Ctrl+D [repeatedly] Multi-Selection
Alt+F3 Multi-Selection

Install Packages

  1. Ctrl+Shift+P
  2. install [enter]
  3. select package

ZenCoding/Emmet

Install ZenCoding/Emmet

Instructions to install (2011)

Shift+Ctrl+P : "Open Gist" and choose from public gist.github snippets

ZenCoding/Emmet Shortucts

Key Description
Tab or Ctrl+E Expand Abbreviation
Ctrl+Alt+Enter Interactive “Expand Abbreviation”
Ctrl+, Match Tag Pair Outward
Shift+Ctrl+0 Match Tag Pair Inward
Ctrl+Alt+J Go to Matching Pair
Shift+Ctrl+G Wrap With Abbreviation
Ctrl+Alt+→ or Ctrl+Alt+← Go to Edit Point
Shift+Ctrl+. or Shift+Ctrl+, Select Item
Shift+Ctrl+/ Toggle Comment
Shift+Ctrl+ Split/Join Tag
Shift+Ctrl+; Remove Tag
Ctrl+U Update Image Size
Shift+Ctrl+Y Evaluate Math Expression
Shift+Ctrl+R Reflect CSS Value
Ctrl+' Encode/Decode Image to data:URL
Shift+Ctrl+' Rename Tag

Increment/Decrement Number actions:

Key Description
Ctrl+↑ Increment by 1
Ctrl+↓ Decrement by 1
Alt+↑ Increment by 0.1
Alt+↓ Decrement by 0.1
Shift+Alt+↑ Increment by 10
Shift+Alt+↓ Decrement by 10

VirtualEnv Build Systems

#python

FILE: - ~/Library/Application Support/Sublime Text 2/Packages/User/venv.sublime-build - ~/Library/Application Support/Sublime Text 3/Packages/User/venv.sublime-build

Sublime Text 2:

  • USING PROJECTS: (I.E. REQUIRE A PROJECT FILE TO BE SAVED)
{
    "cmd": ["$project_path/bin/python", "-u", "$file"]
}
  • NOT USING PROJECTS:
{
    "cmd": ["$file_path/bin/python", "-u", "$file"]
}

Sublime Text 3:

  • USING PROJECTS (I.E. REQUIRE A PROJECT FILE TO BE SAVED)
{
    "shell_cmd": "$project_path/bin/python -u \"$file\""
}
  • NOT USING PROJECTS:
{
    "shell_cmd": "$file_path/bin/python -u \"$file\""
}
  • https://github.com/bgreenlee/sublime-github
  • http://stackoverflow.com/questions/15125699/sublime-text-2-python-code-completion
  • http://dbader.org/blog/setting-up-sublime-text-for-python-development