If regular expressions are not already enabled, enable them: Alt+R
Type in the expression .*\n.*\n
Find all: Alt+Enter
Press left arrow to get rid of the selections, leaving just the cursors: ←
You now have a cursor at the start of every odd-numbered line. If you wanted even-numbered lines, press down: ↓
Depending on the file, there might be one cursor missing right down the bottom of the file. Using the mouse (damn!) scroll to the bottom, hold down Ctrl, and click where the missing cursor should be to add it in.
I've got some poorly-formatted HTML code that I'd like to reformat. Is there a command that will automatically reformat HTML code in Sublime Text 2 so it looks better and is easier to read?
I want to set up a complete Python IDE in Sublime Text 2.
I want to know how to run the Python code from within the editor. Is it done using build system? How do I do it ?
In Visual Studio I can press Ctrl+K+D to indent everything so the code is structured nicely and readable. Is there a shortcut in Sublime 2 to do the same?