7 ms·
A List of Sublime Text 2 Hotkeys
- swah 14y agoIf you go to your Preferences file, you can always get the complete list of shortcuts, and will also realize how easy it is to set new ones.
- nacho2sweet 14y agoSick table markup brah.
- brbcoding 14y agoFunny, I literally just created one of these yesterday... https://github.com/CodyHenshaw/Misc_Repo/blob/master/sublime-keyboard-shortcuts.md https://github.com/CodyHenshaw/Misc_Repo/blob/master/sublime...
- micampe 14y agoIf you are on OS X, check out http://www.grandtotal.biz/CheatSheet/ http://www.grandtotal.biz/CheatSheet/ to see shortcuts for any application, not just ST2.
- habosa 14y agoAwesome tip. I can't believe I've never heard of that before. Just submitted it to HN, I think a lot of people will like it as much as I do.
- lttlrck 14y agoAwesome vertical middle alignment on IOS... makes it a bit tricky to use.
- hamburglar 14y agoNot just IOS. Desktop Chrome here and the lines don't line up. Since when is "here is a screenful of mundane information, badly presented" Hacker News material?
- overload119 14y agoI think this is less about Sublime Text 2 Hotkeys, and more about how awesome wrttn.in is! Going to be using it from now on.
- bpatrianakos 14y agoIf you like wrttn.in check out Write.app. Same deal except with a Sublime Text 2 plugin and a bunch more ways to store and share notes than just the web interface. https://writeapp.me https://writeapp.me
- johtso 14y agoThat's some pretty bad markup, the rows don't even line up. Oh right, it's a single row with two cells..
- hayksaakian 14y agoNot sure how to read this http://www.imgur.com/6PZkdHU.png http://www.imgur.com/6PZkdHU.png
- sanswork 14y agoI'm on a mac desktop and they still don't line up.
- andys627 14y agoUnusable. Stuff needs to line up
- up_and_up 14y agoHere is a better version as Gist. For mac: https://gist.github.com/lucasfais/1207002 https://gist.github.com/lucasfais/1207002 and Windows: https://gist.github.com/hileon/1311735 https://gist.github.com/hileon/1311735
- xrt 14y agoIs there any way to view the .textile files rendered properly w/in Github? They are rendering the same as raw for me. Am I missing something?
- prophetjohn 14y agoWant a comprehensive list? Preferences > Key Bindings > Defaults.
- mercuryrising 14y agoIt would be really nice if there was a way to configure a key command in ST2 to run a specific script depending on the language you're writing. I don't usually write C unless I'm writing stuff for Arduinos. The Arduino IDE isn't very nice, but they have the magical commands "Control+U" and "Control+Shift+U" that upload code either through the FTDI board or a programmer. If I had that in ST2, I would be in heaven (right now I write in ST2, copy, paste into Arduino IDE, then upload).
- bpatrianakos 14y agoWrite a plugin for yourself complete with the key bindings you want. ST2 plugins are just Python scripts. Granted you have to know Python but I assume since you're writing C and mesing with Arduino you either already know it or can pick it up with no problem.
- CJefferson 14y agoWhile I know they are in python, I have never been able to find any documentation about how to build plugins, and what they can do. Could you point me to such a thing?
- bpatrianakos 14y agoYeah, definitely! Here are the two I used - fair warning, one is a Nettuts article. It's not the best tutorial ever but I had never written any Python before reading it and I was able to pull out the useful bits and apply them to my own plugin. http://net.tutsplus.com/tutorials/python-tutorials/how-to-create-a-sublime-text-2-plugin/ http://net.tutsplus.com/tutorials/python-tutorials/how-to-cr... - If nothing else, this will at least teach you how a Sublime plugin works (like where it lives and how you add it to the editor and such) After that, the Sublime API will take it from there - http://www.sublimetext.com/docs/2/api_reference.html http://www.sublimetext.com/docs/2/api_reference.html I took bits about how ST2 plugins are structured from the first article, then looked for 'how to do X n Sublime' in the second and once I got those down it was just a matter of Googling for "how to do Y in Python". The basic gist of it is that a plugin for Sublime is just a Python script that lives in Sublime's packages directory (~/Library/Application Support/Sublime Text 2/Packages on a Mac). Create a folder named after your plugin, drop the python script in there, and then use Python + the Sublime API methods to interact with the browser.
- cjh_ 14y agoI think I'm missing something, but I'm sure I have used plenty of hotkeys that are not in this list (ie; insert line before current). Can someone explain?
- castles 14y agoFor sublime text 3, a QuickPanel plugin to show keybindings/settings: https://github.com/sublimator/EditPreferences https://github.com/sublimator/EditPreferences
- waltz 14y agohow about copy the current line?
- prophetjohn 14y agoctrl+C/cmd+C That's gets the whole line including carriage return when nothing is highlighted. You could also cmd+L (expand selection to line) and then cmd+C if you already had something selected.
- deleted 14y ago[deleted]
- nnq 14y agoTip (not really ontopic): learn Vim, then use whatever editor or IDE you want with Vim keybindings mode or a Vim-emulating plugin - you'll end up with an universal set of keybindings you will learn once and use everywhere and you will be able to be productive in any editor and any IDE (yeah, there are always limitations, nothing emulates Vim perfectly and this is way I advise you "not to learn too much of real vim", just the most usefull keys, but nowadays there is at leas one good vim mode/plugin for any other serious IDE or editor, including ST2).
- newishuser 14y agoWhile you are correct, you are completely off topic and not really helping. Plus, it's not like HN needs another reminder of vim's infallibility.
- nnq 14y agoit's not about vim's infallibility - I consider vim ugly, weird, too powerful and ad the same time limited and I'm a ST user. I was just referring to the fact that by learning its keys and basic modal principles, you can afford not to learn 70% of the fucked-up keystrokes and menu driven functionality of other otherwise good editors or IDEs. Just learn the 30% that is really unique and useful (GUI stuff, advanced refactoring etc.) and "drive it like it's vim" for other features. This way it becomes like driving cars: 90% of car functionality is the same for all cars so I can jump into any car and drive it - maybe not for best safety and performance, but it works for me.
- klapinat0r 14y agoSpeaking of Mac/Windows, do anyone know the Mac shortcut for Swap Line up/down? In Windows it's Ctrl+Shift+Up/Down, but I've been unable to find the Mac equivalent. EDIT: Sorry, I spoke too hastly. Ctrl+Super+Up/Down in case anyone else wonders.