Skip to content

Latest commit

 

History

History
86 lines (37 loc) · 2.19 KB

text-editor-setup.md

File metadata and controls

86 lines (37 loc) · 2.19 KB

Table of Contents

Setting up Sublime Text

1. Download sublime text from Sublime Text

2. Create a symlink (symbolic link) to open sublime from your console.

Here are some guides:

Official Sublime guide:

OSX

Windows users use this:

Windows

Linux support:

Ubuntu

3. Add sublime as your default editor for git:

$ git config --global core.editor subl

remember the $ is just the sign for the directory. You don't type that in.

And here is how you can make it the default for the finder app in your OS:

OSX

Windows:

Windows

Linux:

Ubuntu

Sublime Hotkeys

Here is a reference for Sublime Text shortcuts pick 1 or 2 everytime you start a challenge

Sublime Shortcut OSX

Windows/linux

Here are a few that I find I use all the time:

cmd + ← OR → go to beginning or end of line from cursors current location, combine with shift to highlight the whole line.

option/alt + ← OR → jump by word instead of character.

option/alt + click and drag box style highlighting, also an easy way to create many cursors.

cmd + d find next instance of highlighted word, easily replace key words!

cmd + p quick open file, just start typing the name of the file.

cmd + shift + V paste and indent correctly.

cmd + y redo, opposite of undo.

cmd + x delete line.

cmd + ctrl + ↑ OR ↓ bubble line up or down.

cmd + / comment or uncomment selected text/line.

cmd + [ or ] indent or un-indent line or selected lines.

cmd + shift + p open command prompt.