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
47
votes
3 answers

Sublime text 2 find in folder with file extension

How do I search in a folder in sublime text 2 with file extension? My where when I use: *.js searches globally for all js files. If I try to restrict it to a folder: /project/*.js it matches nothing.
Harry
  • 52,711
  • 71
  • 177
  • 261
46
votes
3 answers

change line height in sublime text default theme after changing the font-size

I found this link on stackoverflow: Sublime Text 2 how to change the font size of the file sidebar? I followed the directions and changed the font size, but now the font is too big with too small of a line height, so it looks stacked on top of each…
Masu
  • 1,568
  • 4
  • 20
  • 41
46
votes
6 answers

Short cut for close HTML tag in Sublime Text 2

Is there a shortcut to close the HTML tag you've just opened in sublime text 2?
Rich
  • 5,603
  • 9
  • 39
  • 61
46
votes
5 answers

When opening a directory through command line, Sublime text opens two windows instead of one

If I open a directory in Sublime using the command line (subl path/to/my/folder/), Sublime will open two instances: one with the directory I asked for, and another one with the directory I opened last time I used Sublime. Any idea why ? I don't…
Anto
  • 6,806
  • 8
  • 43
  • 65
45
votes
3 answers

Backspace Tab in Sublime Text 2

I have block of code that I would like to move (2 space/1 tab) backwards. I know I can select the whole block and hit tab to move it forward but how do I move the whole block backwards (to the the left)?
FluxEngine
  • 12,730
  • 14
  • 57
  • 83
44
votes
2 answers

Custom syntax highlighting in Sublime Text 2

I want to use Sublime Text as log viewer. That's why I need to create tmlanguage file for highlighting of word "ERROR" (and some others). Is there any spec of tmlanguage xml, or can you give me basic example of syntax-highlighting file for sublime…
sev3ryn
  • 1,055
  • 1
  • 9
  • 17
43
votes
4 answers

How can I open Sublime Text 2 files from the command line in linux to a tab, not a new window

I have ST2 setup so that I can do 'sublime file.txt' and it will open in a ST2 window. But how can I make it open in a new tab in the currently open window?
phirschybar
  • 8,357
  • 12
  • 50
  • 66
42
votes
5 answers

Sublime Text 2 - Package Control installed but the list not shown

I am using Sublime Text 2 for Mac. I have installed the Package Control for Sublime Text 2, following the instructions from https://sublime.wbond.net/installation#st2 without any trouble. However, when I open up Ctrl+Shif+P to search for available…
phanatuan
  • 495
  • 1
  • 5
  • 14
42
votes
1 answer

Sublime Text wrap selection with snippet

I've been digging into Sublime's snippets, plugins and macros, but I can't seem to find what I'm looking for. I'm trying to turn this: .content { color: @blue; } Into this: .content { color: darken(@blue, 5%); } Ideally, I'd be able to…
saltcod
  • 2,003
  • 5
  • 21
  • 36
41
votes
4 answers

Sublime Text on Ubuntu 14.04 - Keeps attempting to remove it

Sublime & from Terminal, opens a Sublime Text window, but keep getting this message: (sublime: 6476): GLib-CRITICAL **; Source ID 1982 was not found when attempting to remove it. The Source ID keeps changing. Using Ubuntu 14.04. Any ideas what…
Janeway
  • 511
  • 1
  • 4
  • 5
41
votes
3 answers

Show active plugins in Sublime Text and disable them

I just installed sublime text 2 and was overwhelmed by the php plugins that I installed ALL of them. Now auto-complete is crazy, a million unnecessary suggestions and I dont remember which plugin does what or which ones I installed. Is there a way…
frazras
  • 5,928
  • 4
  • 30
  • 40
41
votes
13 answers

command "subl" from terminal don't work

I am a Mac-newbie (Mountain Lion) and try to set up the "subl"-command for the terminal, like described here: The first task is to make a symlink to subl. Assuming you've placed Sublime Text 2 in the Applications folder, and that you have a…
Fawyd
  • 1,435
  • 3
  • 13
  • 19
41
votes
8 answers

Sublime Text 2: can't create symlink to subl, says "bin/subl: No such file or directory"

I've downloaded and installed Sublime text 2. I am following the directions here: but I am stuck at this part: The first task is to make a symlink to subl. Assuming you've placed Sublime Text 2 in the Applications folder, and that you have a ~/bin…
user1404456
  • 559
  • 2
  • 5
  • 5
40
votes
5 answers

Highlighting comments containing TODO in Sublime Text 2

Is there a way to tell Sublime to highlight comments that contain the word "TODO"? I've looked for plugins that do this but haven't really been able to find much.
samturner
  • 2,213
  • 5
  • 25
  • 31
40
votes
6 answers

Sublime Text 2: how to position cursor at begin/end of buffer?

I feel silly having to ask what seems like a basic question. I've Googled plenty, and I've examined the Default(OSX).sublime-keymap file, but I can't figure out: How can I make the cursor jump to the beginning/end of the current buffer in Sublime2…
George Armhold
  • 30,824
  • 50
  • 153
  • 232