Keys |
Action |
cmd + d |
Select word, additional presses select next occurrence |
cmd + k |
Skip current selection when using cmd + d |
ctrl + cmd + up/down |
Move the current line up or down |
ctrl + shift + k |
Delete current line |
cmd + enter |
Add a line below and take cursor there |
cmd + shift + enter |
Add a line above and take cursor there |
cmd + ] |
Indent line |
cmd + [ |
Outdent line |
cmd + l |
Select entire line |
ctrl + g |
Go to line |
ctrl + shift + l |
Change file language |
cmd + \ |
Hide/show Tree View (directory view) |
ctrl + 0 |
Toggle between Editor and Tree View |
ctrl + shift + m |
Open pane for Markdown Previewer |
Keys |
Action |
cmd + shift + o |
Open Folder / Project |
cmd + shift + f |
Search entire project directory |
Each package has a list of predefined snippets, use cmd + ,
to open up the settings tab and click on Packages. Search
for your language, click on that package and at the bottom is
a list of all it's snippets.
To use a snippet, type the following then press tab
Snippet |
Output |
lorem |
Fills file with some placeholder text |
php |
Opens a php tag <?php ?> |
html |
Outputs a basic html file structure |
-- |
HTML comment |
div |
Outputs a div with class ready to enter |
/** |
Start javascript comment |
fun |
JS function |
for |
Output for loop |
if |
Output if structure |
log |
Output a console.log |