Sublime Text 2 is a cross-platform GUI text editor for Windows, OS X and Linux.

learn more… | top users | synonyms

33
votes
3answers
10k views

How can I filter a file for lines containing a string in Sublime Text 2?

I want to filter a file I'm editing in Sublime Text 2 for lines contain a certain string, if possible including regular expressions. Consider the following file: foo bar baz qux quuux baz When ...
3
votes
1answer
2k views

How can I set key bindings for menu items in Sublime Text 2?

There is no keyboard shortcut for menu items such as Refresh Folders. I have to use my mouse every time. How can I define key bindings for menu items in Sublime Text 2?
1
vote
3answers
5k views

How to shift a block of text to the right/left in Sublime Text 2

How do I shift a block of text to the left or right with Sublime Text 2?
9
votes
3answers
14k views

Is there an HTML auto-indentation feature or plugin for Sublime Text (aka prettify/beautify/format)?

For example, something to change: <section><article><h1></h1><p></p></article></section> to: <section> <article> ...
5
votes
2answers
3k views

Edit both opening and closing html tag

Is there a way (core or plugin) that a closing html tag name changes accordingly when renaming the opening one ? A behaviour similar to multi-selection...
5
votes
1answer
1k views

Sublime Text 2 / Windows: launch from command line?

How could one invoke Sublime Text from the command line, so that it starts in the current folder? (I'm using the MINGW32 that comes with Git on Windows)
3
votes
2answers
2k views

In Sublime Text 2, how do I make a key mapping to move the cursor up or down multiple lines?

I'm trying the following key mapping, but it only moves the cursor up one line at a time. I'd like it to move 10 lines at a time. It seems the "amount" paramater is ignored. { "keys": ["alt+down"], ...
5
votes
2answers
1k views

Sublime Text 2 - insert breaks to match current wrapping?

Is there an automated way to insert line breaks at every point where the text is currently wrapping? After this operation, no lines should be wrapped, but it should look visually identical.
4
votes
3answers
2k views

Sublime Text Editor command not found

I have installed Sublime on my Mac Lion Laptop, and followed the guide here http://www.sublimetext.com/docs/2/osx_command_line.html but as always it did not work. I dont have a ~/bin directory on my ...
1
vote
1answer
277 views

.class specific search and replace

I'm trying to remove entire tag with specific class: Code: <div> Blah blah <div class='myClass'> <div>some other div</div> </div> </div> <div> Blah ...