Questions tagged [sublime-text-2]

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

Sublime Text 2

Sublime Text is a cross-platform C++-based text and source code editor. The program was originally designed as a feature-rich extension of Vim. The current version of Sublime Text 2 is 2.0.2.

Some features include:

  • Minimap: a preview of the full source code
  • Ability to select multiple sections of code
  • Multi-panel editing
  • Bookmarks within files
  • Native support for 27 programming languages included, with many more available for download
  • Autosave
  • RegEx-based find and replace
  • Fully customizable syntax highlighting
  • Brace matching, autocomplete
  • Support for macros and Python-based plugins
  • Custom key bindings
444 questions
86
votes
4 answers

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 filtered for ba, the result should be: foo…
Daniel Beck
  • 111,893
69
votes
2 answers

Search and replace with TAB character in Sublime Text 2

In Sublime Text 2, I want search and replace by the TAB character. I tried replacing with \t char but it's not working. How can I do it?
shingara
  • 793
58
votes
3 answers

Sublime Text 2: how to force all files to open in a single window?

I like using a single Sublime Text 2 window with multiple tabs. Currently, when I click on files in Finder that are openable via ST2, they open in separate ST2 windows. How do I force ST2 to open tabs in a single ST2 window for new files?
Sajee
  • 6,869
51
votes
1 answer

Convert variables between camel case and underscore style

I would like to convert variables from or to UpperCamelCase, lowerCamelCase, underscore_style, or even "separate by spaces". This would be useful for coding and making documentation. I use Sublime Text 2. Can this be done in this editor?
Stan
  • 7,325
48
votes
1 answer

How do I assign a keyboard shortcut to recorded macro in Sublime Text

I have a bunch of macros which I have recorded and saved in Sublime Text 2. I'm trying to assign keyboard shortcuts to each of those, but I'm kind of lost as to how to go about doing this, I had a look at Sublime Text 2 - Assign a keyboard shortcut…
48
votes
4 answers

In Sublime text, how do you disable increase/decrease font size with ctrl and mouse wheel?

With Sublime Text, is it possible to disable increase/decrease font size when using control and mouse? I found the key bindings for ctrl and +/-: { "keys": ["ctrl++"], "command": "increase_font_size" }, { "keys": ["ctrl+="], "command":…
d_rail
  • 2,989
48
votes
3 answers

Turn Off Parenthesis Matching in Sublime Text 2

I have questions about turn off parenthesis matching. Does anyone know how to turn off parenthesis matching? example: When I type a (, it will automatically add ), becomes (). It's pretty nice for editing plain text. But quite annoying while editing…
44
votes
3 answers

Sublime Text 2 - Encoding UTF-8

How do I change the file encoding in Sublime Text 2? How do I change character encoding of a text file in OpenOffice.org writer? http://www.sublimetext.com/forum/viewtopic.php?f=4&t=3541
41
votes
1 answer

Possible for Sublime Text 2 to save on loss of focus?

Textmate can save files when I switch focus to another application (that is, on blur). Is it possible to set this up in Sublime Text 2?
Alan H.
  • 2,938
40
votes
1 answer

Hotkey to remove duplicate lines in Sublime Text 2?

I'd like to add a hotkey for the menu item Edit>Permute Lines>Unique, but what I've added to my user keybindings isn't working: [{ "keys": ["f8"], "command": "permuteLines method unique" }] What should I have added?
Thalecress
  • 1,407
35
votes
6 answers

How to open file using only keyboard in Sublime Text?

How do I open a file using only keyboard in Sublime Text 2/3? Looking for equivalent of :e /path/to/file from Vim.
ivanzoid
  • 507
34
votes
5 answers

Can I right-click a folder in Windows 7 and choose "Open with Sublime Text"?

In Windows 7, I can do this at the command line: "c:\Program Files\Sublime Text 2\sublime_text.exe" samplefolder This launches a Sublime Text window, with the contents of samplefolder loaded in Sublime's sidebar. While this works as needed, it's…
32
votes
7 answers

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?
erikvold
  • 4,148
31
votes
1 answer

Hide build results window in Sublime Text 2

After a build command (control + b) a window with results appear. Is there any way (not automatically but by shortcut or using another command) to hide it?
bluszcz
  • 421
30
votes
2 answers

Set current language without saving file in Sublime Text

I have recently started using Sublime Text 2 after getting tired with Notepad++. Now, if I wanted to set what language I am currently programming in in Notepad++, I would go to the Language menu, and select whichever language I wanted. But in…
topherg
  • 1,150
1
2 3
29 30