- Useful when setting up your text editor, or re-setting it up!
- Feel free to fork or simply copy for yourself.
The plugins file you have to install with the Sublime package manager by
going to https://packagecontrol.io/installation. Then you press CTRL+SHIFT+P and type Inst and you should see Install Package
.
Go to View > Show Console menu
or CTRL+(tilde) and enter the following, then restart. Once installed type
CTRL + SHIFT + P` and type Install and you should see Package Control.
import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
You can copy my user settings if you like them. Anything prefixed with an _
underscore means its not being used, that's because you can't comment in JSON so it's there incase you want to use it.
All Commands below are for in Windows and Linux, as they will be the same. Apple commands will be different, sorry I don't use Apple.
Method | Key Combo |
---|---|
UI | |
Overlay Command Palette | CTRL + SHIFT + P |
Fuzzy File Search | CTRL + p |
Show Workspaces | CTRL + ALT + P |
View File Scope | CTRL + R |
Go to Definition | F12 |
Next Tab Forward | CTRL + TAB |
Next Tab Backwards | CTRL + SHIFT + TAB |
Toggle Sidebar | CTRL + (K + B) - Hold CTRL the entire time |
Code | |
Find Matching Bracket | CTRL + M |
Find in File | CTRL + F |
Replace in File | CTRL + H |
Find or Replace in Folder | CTRL + SHIFT + F |
Go to Line | CTRL + G |
Delete Line | CTRL + E |
Duplicate Line | CTRL + D |
Move Line Up | CTRL + SHIFT + UP |
Move Line Down | CTRL + SHIFT + DOWN |
Moving By Words | CTRL + LEFT or RIGHT |
Select Words | SHIFT + LEFT or RIGHT |
Remove Word | CTRL + DELETE |
Fold Scope | CTRL + [ |
Unfold Scope | CTRL + ] |
Fold Entire Scope | CTRL + SHIFT + [ |
Unfold Entire Scope | CTRL + SHIFT + ] |
Basics | |
Indent | TAB or CTRL + ] |
Unindent | SHIFT + TAB or CTRL + [ |
Select All | CTRL + A |
Stole this off @seneca
in #orlandodevs on Slack
{ "keys": ["leftSHIFT+super+i"], "command": "insert_snippet", "args": {"contents": "import ipdb; ipdb.set_trace()"}}`