A List of Sublime Text 2 Hotkeys
wrttn.in
wrttn.in
https://github.com/CodyHenshaw/Misc_Repo/blob/master/sublime...
For mac: https://gist.github.com/lucasfais/1207002
and Windows: https://gist.github.com/hileon/1311735
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).
This site has a pretty good run down of how they work: http://addyosmani.com/blog/custom-sublime-text-build-systems...
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
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.
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.
Can someone explain?
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.