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
2
votes
1 answer

An advanced Find and Replace with RegEx in Sublime Text

I have a directory full of Classic ASP legacy code, and almost all files have something similar to this: Then later in the code, some JavaScript is running, and doing the…
J86
  • 14,345
  • 47
  • 130
  • 228
2
votes
1 answer

Setting and changing build systems in Sublime Text 2

How can I edit all the build systems so as to delete some ones or to change others ? Indeed I have added a personal build but it does not work...
user1054158
2
votes
2 answers

Making tracebacks clickable when running Python unit tests inside Sublime Text

Is it possible to make output clickable: clicking the traceback line takes you to the corresponding Python file in Sublime Text edit tab?
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
2
votes
5 answers

Selecting just "th" from "11th March" using regex

How can I replace th, nd, st from the following data using regex with anything say a space. my random text goes here with th in it..... "11th March" ....my random text goes here with th in it. my random text goes here with nd in it..... "02nd March"…
Navi
  • 95
  • 2
  • 8
2
votes
2 answers

Problems running an AppleScript from SublimeText

I am stuck. I have SublimeText plug-in that I wrote run code in Stata (a statistics package). After preparing the file, I used to do this: cmd = """osascript<< END tell application "stata" activate open POSIX file "%s" end tell END""" %…
drstevok
  • 715
  • 1
  • 6
  • 15
2
votes
1 answer

How do I change tab behavior when writing HTML markup?

I have Sublime Text 2. When I begin typing and place the cursor between the tags. Perfect. If I hit enter again twice, I get this…
juuga
  • 1,274
  • 1
  • 13
  • 25
2
votes
2 answers

Skip autocompleted brackets, commas etc. with tab in sublime-text

In sublime, if you type, alert("{ it will autocomplete the closing brackets and quotes to: alert("{}"). In visual studio, if you hit tab, it will place the cursor at the end of the autocompleted characters. How can I replicate this…
user2787904
  • 517
  • 2
  • 7
  • 18
2
votes
1 answer

SublimeText 2 - find all occurences and save in file

I need to find all occurences of expression in all project files and saved into a separate file. (I need complete list of occurences). It's possible? (If not, please advice made unpaid simple similar editor with this functionality). Thanks
Mr. RJ
  • 224
  • 5
  • 14
2
votes
1 answer

Sublime Text 2 Vintage mode and Go To Line

Is there a way tu use Vim's standard Goto line (:number) in Vintage Mode? Currently I have to use Ctrl+g.
jviotti
  • 17,881
  • 26
  • 89
  • 148
2
votes
4 answers

How do I disable Emmet's CSS Abbreviations in Sublime Text 2

I really like how Emmet generates HTML based on 'CSS-like' strings but I don't want to use their CSS Abbreviations. Cause when I write a piece of css as follows: li a| And I press 'TAB', I want to get a Tab li a | But with Emmet I get the…
user007
  • 1,557
  • 3
  • 16
  • 24
2
votes
0 answers

Debugging JavaScript files in Sublime Text 2 with Xdebug plugin

I am a newbie as far as debugging goes. I usually just see if my javascript works and if not just start searching through my code. Can someone give me a walk through for dummies of how to set a breakpoint and see if the page hits it using Sublime…
simple
  • 2,327
  • 7
  • 35
  • 55
2
votes
2 answers

How can I have HTML tab expansion in ST2 w/ Emmet inside Handlebars templates(emberjs)?

Okay, so I'm using Sublime Text 2 with Emmet. But "Tab" expansion of HTML snippets doesn't work inside a script because of the scope. Example: In HTML, I can type "h1" and then hit tab, and it will generate

When using Ember.js, and more…
Kenmore
  • 1,525
  • 3
  • 16
  • 39
2
votes
1 answer

Deselect text in sublime text vintage mode without escape key

In Sublime Text 2, I use the escape key to deselect text. In vintage mode, this also maps to command mode with the result that I am always unintentionally entering command mode. How do I either: Deselect text using a different key than…
scottmrogowski
  • 2,063
  • 4
  • 23
  • 32
2
votes
1 answer

Sublime Text 2 Mac Removing Folders on Close

I use Sublime text 2 as my IDE at both work and home. On a windows machine sublime remembers all the folders in the left had column when the programme is closed ect. However on my mac using sublime removes the folders as soon as that window is…
2
votes
1 answer

Sublime Text 2 - Problems with HTML automatic element on return

Hi everytime I hit return after an html element sublime propose a wierd auto completion element : like this div> after I hit return after a closing div element Very very annoying Thx
1 2 3
99
100