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
54
votes
2 answers

Sublime Text 2: disable document preview

I tried searching for this, but there's a different feature in SublimeText that people call "preview", so I couldn't find any relevant info. How do I disable the preview navigation image that's displayed within SublimeText2 when a document is open?…
Jakob Jingleheimer
  • 30,952
  • 27
  • 76
  • 126
54
votes
4 answers

Sublime Text 2 Code Formatting

First let me say I come from a Microsoft background and Visual Studio is my bread and butter. It has a command (keybind is arbitrary) that auto-formats any code syntax. The same command works in HTML, CSS, Javascript, C#, etc. I have tried…
Terry
  • 14,099
  • 9
  • 56
  • 84
53
votes
4 answers

Twig syntax highlighting sublime text

I want to know how can I have highlighting syntax for TWIG in Sublime Text. Actually when I open a TWIG file all fonctions and conditions are similar (white on black) :
Antoine Subit
  • 9,803
  • 4
  • 36
  • 52
53
votes
20 answers

The shortcut key to open console in Sublime Text 2 does not work

I'm using Sublime Text 2 (version 2.0.1) on Windows 7, and I haven't installed any plugins for this software. I can use menu to open the console, but I cannot open console via ctrl + ` shortcut. How to fix this problem?
Wu Zhou
  • 1,109
  • 1
  • 9
  • 10
53
votes
5 answers

Sublime Text 2 - key binding to change syntax

I want to make a new key binding to change syntax to, let's say, HTML or CSS. I searched the official and unofficial documentation to see if there are any answers to my problem.
Alex
  • 533
  • 1
  • 4
  • 4
52
votes
6 answers

How to unbind a key binding in Sublime Text 2?

I have a habit of hitting CTRL+T to open a new tab in ST2. However this invokes the transpose function. I could map the new_file command to CTRL+T, but is it possible to disable the command completely via user keymap file. My search suggested adding…
user
  • 17,781
  • 20
  • 98
  • 124
52
votes
4 answers

.m files as MATLAB/Octave for Sublime Text

Sublime sees .m files as Objective C files. I've been given a bunch of MATLAB/Octave files to work with using Octave, all with .m extensions. If I change the extensions to .matlab, then Sublime will recognize them and format them correctly, but…
scharfmn
  • 3,561
  • 7
  • 38
  • 53
51
votes
6 answers

Terminal window inside Sublime Text 2

I saw this project that basically opens a new terminal window from sublime text-2. What I'm looking for is a way to open the terminal inside sublime text 2 via console. Does anyone knows how can I do that?
Sagiv Ofek
  • 25,190
  • 8
  • 60
  • 55
51
votes
6 answers

How to change style of matched brackets in Sublime Text 2 / 3?

It's just underlining the matched brackets, Is it possible to make it more useful like changing brackets colour or highlighting the line of brackets?
Okan Kocyigit
  • 13,203
  • 18
  • 70
  • 129
50
votes
2 answers

Changing default syntax based on filename

In Sublime Text 2, I've seen ways of basing the syntax off of the extension. But what about a filename with no extension? For example, I often have a file called "Vagrantfile" which is in ruby, yet Sublime Text 2 always wants to start off in plain…
Matthew
  • 15,282
  • 27
  • 88
  • 123
49
votes
3 answers

How to clear console in sublime text editor

How to clear console in sublime text editor. I have searched on internet too..But can't find proper shortcut for that. Please provide info
Curious_k.shree
  • 990
  • 2
  • 18
  • 37
49
votes
6 answers

sublime text : open containing folder

I'm working on some file in my sublime text 2 editor, and I want to open a folder in which that file resides. I know there is a 2 step procedure to do this already step 1: right click and reveal in sidebar (ctrl+shift+r) step 2: right click on the…
sublime
  • 4,013
  • 9
  • 53
  • 92
48
votes
6 answers

How to close all tabs with Sublime Text 2 without saving?

I use Sublime Text 2 for editing a lot of temporary files. I end up with lots of tabs open. I want to close all open tabs without saving and without the "Do you want to save the changes you made to new file?" prompt showing and having to click on…
Hardy Le Roux
  • 1,489
  • 4
  • 17
  • 28
48
votes
5 answers

A good free ftp plugin for Sublimetext 2

I am new to Sublimetext and wondering what is a good free FTP plugin to use with it. Thought the editor must have something inbuilt in it. I have seen developers use some sort of FTP plugin with it. Feedback appreciated. I am on a Mac Moutain Lion…
pal4life
  • 3,210
  • 5
  • 36
  • 57
48
votes
3 answers

Sublime Text 2 : colour of edited file tab?

I see that the Sublime Text theme (.config/sublime-text-2/Packages/Theme - Default/Default.sublime-theme) can be edited to make the open tab more obvious. For that I use { "class": "tab_control", "attributes": ["selected", "file_medium_dark"], …
Rhubbarb
  • 4,248
  • 6
  • 36
  • 40