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

learn more… | top users | synonyms

4
votes
1answer
2k views

sublime text right click not working for sidebar

I am using sublime text 2 on windows 7. I had installed 3 plugins: Emmet Dockblockr SidebarEnhancements Now when i right click on the folders on the sidebar nothing is happening. I tried ...
4
votes
1answer
2k views

Using an external text editor to edit VBA code

I have inherited a lot of VBA code to maintain and so far I am using the VBE. Sometimes is quite hard to do some tasks, like advanced text search, so usually I export the module, edit the content with ...
4
votes
1answer
1k views

Automatically insert a space between parentheses in Sublime Text 2

Is there some configuration or plugin I can use which would add spaces to the inside of parentheses when they're matched. Here's an example of what I'm trying to explain. if (^) // ^ represents ...
4
votes
2answers
2k views

How to use Sublime Text as a Multimarkdown editor?

Is it possible to use Sublime Text 2 as a Multimarkdown editor with preview in browser as I do with Markdown? Thank you. Hugo
4
votes
2answers
4k views

Better syntax highlighting for Java in Vim?

I've found Vim to have fantastic syntax highlighting with my preferred color schemes for Ruby and Python, but whenever I need to write Java code, it's like I haven't even turned on highlighting in the ...
4
votes
1answer
523 views

SublimeText LaTeXTools: Build doesn't render a PDF

I'm using the LaTeXTools plugin for SublimeText 2, and when running the build, the build system compiles the TeX and invokes Evince, but a PDF file is never rendered and thus, Evince complains, "No ...
4
votes
1answer
1k views

Can you apply XSLT transforms using Sublime Text 2?

Scenario: I have a project with a number of XML files and I would like to apply a XSLT transform on these and then use that output for other purposes. There is a variety of tools to do this, but it ...
4
votes
0answers
381 views

Open up results from Find Results window in new tab/column

In Sublime Text 2 on Mac, I am using the two column layout. I was wondering if it is possible to open results from the Find Results tab (when I search through a directory/multiple files) into the ...
4
votes
2answers
318 views

Sublime Text: Keyboard shortcut for close all other tabs?

If you right-click a tab name you have three options for closing: Close Close others Close tabs to the right If you go through the default shortcuts you'd see only the first is possible using the ...
3
votes
4answers
8k views

auto-close HTML tags in Sublime Text

I'm using Sublime Text 2, and I'm sure there must be a way to make it auto-close XML/HTML tags, the way for example Notepad++ can. Is there a way to have it add </div> immediately after I type ...
3
votes
2answers
1k views

How can I edit file permissions (e.g. make script files executable) from within Sublime Text 2?

When writing e.g. shell scripts, I want to change their permissions (primarily the executable permission) from within Sublime Text 2. How can I accomplish that?
3
votes
2answers
742 views

Is there a way to “Execute and update '# => ' markers” in Sublime Text 2?

This is my most favourite feature from ruby bundle in TextMate. Unfortunately, I can't find how to do the same in ST2. It still inserts the marker when you press TAB after the # symbol, so, I hope, ...
3
votes
1answer
1k views

Disable build window when building in Sublime Text 2

How can I prevent the build window from showing in Sublime Text 2 whenever I make a build with Ctrl+B?
3
votes
2answers
570 views

In Sublime Text how do you short-cut writing code?

My apologies but I do not know what its called, if this has been asked or what Stack site this is best suited for. I've seen several videos on how people use Sublime to create quicker tags and I ...
3
votes
2answers
2k views

How to jump previous or next position in Sublime Text 2?

I want to jump to the previous (or next) position in Sublime Text 2. C-i, C-o in vim. Ctrl-, Ctrl= in Visual Studio. How can I do it in Sublime?
3
votes
2answers
3k views

Setting OS X Path variable for Sublime

I'm setting up Sublime to run with NodeJs on my Mac. I get the error below However, looking at my Path variable, /usr/bin/local is in the Path (I assume these are different?). Im interested to know ...
3
votes
1answer
2k views

Sublime Text 2: Is it possible to clear or clean the project-switching dialog cache?

I use ctrl⌘P to switch projects frequently. Until recently, I stored all of my .sublime-project and .sublime-workspace files in my home directory. In a recent cleanup I decided to move them all into a ...
3
votes
2answers
2k views

In Sublime Text 2, how do I make a key mapping to move the cursor up or down multiple lines?

I'm trying the following key mapping, but it only moves the cursor up one line at a time. I'd like it to move 10 lines at a time. It seems the "amount" paramater is ignored. { "keys": ["alt+down"], ...
3
votes
1answer
3k views

Increase the font size on Sublime Text 2 status bar?

Is it possible to increase the font size on the Sublime Text status bar? I did some searching and didn't find much at all on the subject. I sometimes miss important information displayed in the ...
3
votes
1answer
2k views

Netbeans color scheme settings

Trying to create Sublime Text environment in Netbeans editor. The screen below is before moving cursor into any "path" And after As you see, bg color of multiple instances changed. The ...
3
votes
2answers
1k views

Sublime Text 2 doesn't render text properly if I start the application with my Acer display attached

I'm using a Macbook Air. If I start Sublime Text with no external displays and then attach the display everything looks fine. But, if I attach the display first and then start Sublime Text the text ...
3
votes
2answers
1k views

Sublime Text 2: Working with multiple documents, building master file

I am currently working with LaTeX. I have a big document split up in several sub documents. When I am workin in a sub document, I'd love to compile the master file when pressing ctrl+b, not the file I ...
3
votes
1answer
740 views

How do I get Dash Doc App to respect indentation?

When I expand an abbreviation with Dash Doc App it starts at the cursor location in my text editor (Sublime Text), but then ignores the original placement of the cursor and the next lines begin on the ...
3
votes
1answer
2k views

SublimeText2: Packages does not show up on Package Control: Install

When I was installing some packages, I found that my Package Control: Install Packages although comes up after pressing enter nothing happens. Does anyone else had this issue? I do not know after ...
3
votes
2answers
54 views

Is there a way in Sublime Text to display find results in a panel at the bottom of the current window?

This is a highly useful feature in other editors eg. Eclipse and Notepad++ You get to see the list of find results printed as all the containing lines with their lines in the buffer, which gives you ...
3
votes
1answer
2k views

Is there a Outline (or OPML) plugin for Sublime Text 2?

I am in search of a way to manage my OPMLs from Sublime Text. I know it is not thought to do that, but a simple plugin adding checkboxes and expand/collapse arrows should be enough.
3
votes
1answer
708 views

Portable apps, Dropbox & default programs?

Currently I'm using Sublime Text 2 portable & I have put it inside dropbox to sync with my work PC. The problem is I can't set it as a default program to open HTML/CSS/PHP etc.. files, whenever I ...
3
votes
1answer
241 views

How to manually edit a macro for replacing a list of characters in Sublime Text 2?

I first tried recording a macro, but instead of recording the character sequence it records my commands and movements without arguments, like this: "args": { "close_panel": true }, ...
3
votes
2answers
1k views

How to enable text drag-and-drop in Sublime Text 2?

I'm on Ubuntu 12 and the drag-and-drop feature of Sublime Text 2 refuses to work even though it is explicitly enabled in the configuration file: "drag_text": true and isn't overridden anywhere ...
3
votes
1answer
550 views

Specific font_face based on syntax in Sublime Text 2

Is it possible to display a specific font_face for each individual syntax language setting in Sublime Text 2? For example: "php" : { "font_face" : "Droid Sans Mono" }, "c#" : { "font_face" : ...
3
votes
2answers
2k views

How do I get Sublime Text 2 to properly color SQL even if its inside a php string?

I have the following code in a php page: <?php $query = " SELECT data FROM table WHERE param = 1 "; Since this sql is wrapped inside quotations in a php document, everything ...
3
votes
0answers
2k views

Sublime Text - keyboard shortcut binding not functioning

Following the instructions here, I've set up a new installation of SublimeText for use with R. I have no other SublimeText plug-ins installed. The keyboard shortcuts that are setup using the ...
3
votes
0answers
80 views

Open excluded files and folders in Sublime Text 2

For most day to day uses it's helpful to hide system files and config files from Sublime Text 2 via the file_exclude_patterns and folder_exclude_patterns, but every so often I'll need to make a quick ...
3
votes
1answer
474 views

Installing sublime text plugins all at once

Is there a way to install all the sublime text 2 plugins that you would like to install all at once. In Notepad++, there is a plugin manager which lets you install all the plugins you want to install ...
3
votes
0answers
338 views

sublime text 2 - display jsdocs while typing

I installed the JsDocs package and use it to document my code. ATM I'm using SublimeCodeIntel with Alt+Click to jump to the documentation, but this is quite annoying, especially when you just want to ...
3
votes
0answers
83 views

Build fails if $file_name is non-latin

I'm using Windows version of Sublime Text 2 and MultiMarkdown as a build system. It works fine unless target file name has Cyrillic characters in it. Then it fails silently. To test this I'm using ...
2
votes
3answers
8k views

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?
2
votes
3answers
2k views

Unicode Composition in Sublime Text

I'm not able to use unicode composition (The ctrl+shift+u method) to enter unicode characters in Sublime Text 2 (v2.0.1, Build 2217) on Ubuntu 12.04 (Unity). To reproduce, just open up a tab and do ...
2
votes
2answers
314 views

How to extract terms from an HTML document

I have a HTML document filled with terms that I need to put into a spreadsheet. They follow this basic pattern: <ul> <li class="name"><a ...
2
votes
3answers
1k views

Redefine file extension associations in Sublime text 2

I have noticed that Sublime text 2 by default associates files with *.scm and *.ss extensions with lisp language. But it's scheme actually. Is it possible to redefine this association somehow (in ...
2
votes
2answers
2k views

What is the shortcut to break up multiple lines into one in sublime text 2?

Please browse to the sublime text homepage and have a look at slide #2. There is a "screenshot movie" showing several commands, but there is no explanation. Just CTRL+SHIFT+L for multiple selection. ...
2
votes
3answers
2k views

Multiple cursors in Sublime Text under Ubuntu

I just switched from Windows to Ubuntu 13.04 and I'm missing a function in Sublime Text, On Windows I used the middle mouse button to set multiple cursors (a bit like holding Ctrl and adding cursors ...
2
votes
2answers
3k views

Sublime Text 2 open last opened files from last seesion. Mac OS X

I'm a big fan of Sublime Text 2. Previously I used to work on Fedora. There whenever I closed sublime text 2 (with a lot of files opened) and opened after a system restart, or just closing sublime ...
2
votes
1answer
1k views

Sublime Text 2 “subl” command not found

I have followed this super user post to get sublime command line subl command to work in terminal to no avail. I have the following bash_profile export PATH="/usr/local/mysql/bin:$PATH" export ...
2
votes
2answers
1k views

Sublime Text - Adjust brace style

Our codebase has a "cuddled" curly brace style. That is, the { appears on the same line as the function (or if or while) statement that it goes with: if (condition) { doThis(); } else { ...
2
votes
2answers
2k views

Insert a range of numbers in Sublime Text 2

Is there a way to insert a range of numbers in Sublime Text 2? I have been unable to find a command or plugin, and I have to insert sequences like this semi-frequently. I'm looking for something akin ...
2
votes
1answer
836 views

Disable removal of whitespace at the end of an empty line in Sublime Text 2

If I have this sample code: function foo() { var bar = 1; var foo = 1; // These two lines will be indented on save, // however the following line will have it's indention removed: ...
2
votes
5answers
4k views

How can I run SASS in Sublime Text 2?

I downloaded this SASS syntax highlighting files and done the four steps instructed (as a Mac user). But I don't know how to run it so that my .sass file is converted to .css Can you suggest me ...
2
votes
1answer
594 views

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

How do I use Sublime Text as the OS editor in Mac OS X?

How do I set Sublime Text as the editor for git commits in Mac OS X? In my .zshrc I have: export EDITOR='subl -w' But, if I do: bundle open devise I get the error: Could not run 'subl -w ...