Questions tagged [sublimetext2]

DO NOT USE THIS TAG UNLESS YOUR QUESTION IS SPECIFICALLY ABOUT SUBLIME TEXT ITSELF. Do not tag your IDE or source code editor in questions about unrelated topics. Sublime Text 2 is a multi-language and cross-platform sophisticated code editor developed by Jon Skinner. Please note that version 2 is obsolete and Sublime Text 3 is now the default version. Version 4 is currently in development.

Sublime Text 2 is a multi-language, multi-platform code editor developed by Jon Skinner. Please note that version 2 is obsolete and Sublime Text 3 is now the default version. Version 4 is currently in development.

Features of Sublime Text 2:

  • Slick and Fast UI
  • A text minimap (zoomed out view of your entire file)
  • Multi-select (make changes in multiple pieces of selected text at once)
  • Goto anything (quick navigation within files and projects)
  • Snippets and macros
  • Supports plugins written in Python

TextMate snippets and themes port over nicely to Sublime Text.

Useful links:

4042 questions
159
votes
15 answers

Keyboard shortcut to comment lines in Sublime Text 2

In Sublime Text 2, how do I enclose a selection in a comment? Is there a keyboard shortcut for this action?
user1419762
  • 3,571
  • 5
  • 20
  • 10
155
votes
10 answers

Sublime Text 2 multiple line edit

I want to edit multiple lines and every "word" within that line. For example: 45 28 42 65 24 87 47 95 01 25 87 98 I want to select every whole number in all lines and put a "0x" before it so it would look like: 0x45 0x28 0x42 0x65 0x24 0x87 0x47…
Syperus
  • 1,707
  • 2
  • 11
  • 11
149
votes
8 answers

How to install plugins to Sublime Text 2 editor?

How to install plugins to the Sublime Text editor? I would like to install Emmet plugin to Sublime Text 2 editor.
Arun Krishnan
  • 1,898
  • 3
  • 16
  • 28
148
votes
7 answers

Sublime 3 - Set Key map for function Goto Definition

I want to create an Eclipse style shortcut Ctrl+MouseClick to open the function/method. Sublime Text 3 has already this function called goto_definition but it is bound to F12. But I'm not sure how to create this binding. I looked here for…
Kivylius
  • 6,357
  • 11
  • 44
  • 71
146
votes
9 answers

Syntax highlighting for Jade in Sublime Text 2?

I just started using Sublime Text 2 on Mac. I also just started using Jade for my views in Node.js, and am wondering if there is a way to add syntax highlighting for Jade into Sublime Text 2.
James Simpson
  • 13,488
  • 26
  • 83
  • 108
129
votes
1 answer

Case sensitive Cmd+D in Sublime Text 2

In ST2 ⌘+D expands the selection to the next word, using case insensitive matching. Is it possible to match the word case sensitive?
user187676
128
votes
5 answers

What is the default font of Sublime Text?

I was looking and could not find an answer on this one. Which is Sublime Text's default font type?
Uninvited Guest
  • 1,865
  • 4
  • 19
  • 17
127
votes
2 answers

Find and replace globally in Sublime Text 2 (all files and in all directories)

Is there a way to find and replace a text string automatically in all folder's files?
itsme
  • 48,972
  • 96
  • 224
  • 345
126
votes
3 answers

How to surround selected text in PyCharm like with Sublime Text

Is there a way to configure PyCharm to be able to surround selected code with parenthesis by just typing on the parenthesis key, like when we use SublimText 2?
Alexis Benoist
  • 2,400
  • 2
  • 17
  • 23
125
votes
12 answers

How do I replace text in a selection?

I've just started using Sublime Text 2, coming from emacs. I have a region of text selected. Within that region, I'd like to replace all text instances of '0' with '255'. How do I do this kind of text replacement?
user1419762
  • 3,571
  • 5
  • 20
  • 10
123
votes
14 answers

SublimeText encloses lines in white rectangles

It's rather annoying and I can't seem to figure out why.
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
122
votes
5 answers

How can I put cursor on every line in Sublime Text?

I want to be able to edit every line of my data simultaneously, for instance put quotations in front of every line. I am wondering what the key combination is that will enable me to do this.
Jacko
  • 1,323
  • 2
  • 9
  • 6
120
votes
5 answers

How can I exclude a folder from indexing in Sublime Text, while still showing it in the sidebar?

For a large project with many dependencies e.g. in the node_modules/ folder, I noticed frequent CPU spikes because of Sublime indexing all the files in the folder. I know I can hide files and folders using the folder_exclude_patterns setting, but I…
Geir Sagberg
  • 9,632
  • 8
  • 45
  • 60
117
votes
3 answers

How to configure Sublime Text 2/3 to use direct Ctrl+Tab order and to create new tabs after the last one?

When I press Ctrl+Tab, Ctrl+Shift+Tab or Ctrl+W the tab I get switched to is not the one just near the one I was on (as I would like to) but to some else. When I press Ctl+N the new tab is created right near the tab I am at while I always want it to…
Ivan
  • 63,011
  • 101
  • 250
  • 382
117
votes
5 answers

Sublime Text 2: Trim trailing white space on demand

I know that Sublime Text 2 can delete the trailing white space on files upon saving. When working in a team and commiting a change to a file this tends to produce huge diffs which make peer code review more cumbersome. For that reason I prefer to…
José Luis
  • 1,816
  • 8
  • 24
  • 26