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

learn more… | top users | synonyms

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
963 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
6answers
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
152 views

How can I open a set of files in sublime based on their contents

I am trying to find all the files that contain a search term: grep -lir "Search" . and pipe that into sublime: grep -lir "Search" . | subl but all this does is open a single file in sublime ...
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 ...
2
votes
2answers
164 views

Code line marker in sublime text 2

I personally like this feature in notepad++ Do you know how to do this in Sublime Text 2?
2
votes
2answers
179 views

Key binding for save all

I want to key bind save all to ctrl+alt+S. I know this has been asked and answered on the sublimelime text forum but it's currently down for me. Does anyone remember how to do it?
2
votes
1answer
700 views

Same file in differents tabs

in sublime with ALT+SHIFT+2, I get two columns for files. in vim, with split, I can see the same file in differents parts of code. in Sublime,for comparate differents parts of code, How I can see ...
2
votes
1answer
278 views

Is there a plugin for default file location in sublime text 2?

Is there a plugin (or a setting) in Sublime Text 2 to set the default file location for saving files? As of now, when I open Sublime Text 2 for the first time, create a file and try to save it, the ...
2
votes
1answer
1k views

How do I compile libcache?

I have been trying to use the much talked about SublimeClang plugin for Sublime Text 2, which gives me an error that libcache.so could not be loaded, and in Linux, I am supposed to compile it ...
2
votes
2answers
1k views

Editing files on an Ubuntu server from Sublime Text 2 running on Windows

What's the best way to use Sublime Text 2 running on Windows 7 to edit files that are located on an Ubuntu server? Emacs has TRAMP which allows the remote editing of files via ssh. Something like ...
2
votes
2answers
467 views

Non-blocking editing of remote files via SSH

On OS X, I frequently need to edit files that are actually stored on a remote Linux server I connect to via SSH over VPN. When I'm at the physical of the location of the server, I can easily mount the ...
2
votes
1answer
103 views

Is there a Sublime Text plugin that favours frequently opened files when using 'Goto Anything'?

90% of my 'Goto Anything' usage is opening the same 10 or so files. It would be ideal if this was factored into the search results, to reduce the amount of keystrokes required. Is there a plugin that ...
2
votes
1answer
70 views

Place cursors at both ends of a selection in Sublime Text 2

I'd like to create a key binding in Sublime Text 2 to place cursors at both ends of the selected text. For instance, if I bound this command to Ctrl+B, then selecting a word, hitting Ctrl+B, and ...
2
votes
2answers
1k views

SublimeLinter not working with java

I'm trying to get sublimelinter to work with java so that I can lint my java program, but I don't know what javac -Xlint or what the path is. So my question is, what is PATHs and -xlint? I've got ...
2
votes
1answer
1k views

Project Specific Configurations for Sublime Text 2

Is there a way in sublime text 2 to setup specific configurations for different projects. My personal projects use different spacing and coding standards than my work projects and I hate having to ...
2
votes
2answers
2k views

How to correctly configure Sublime Text's “Expand Selection to Tag” command?

I've been using Sublime Text for quite some time (both on OS X and Windows) and it's been working great. One of the features I like and use the most is "Expand Selection to Tag". On the Windows and OS ...
2
votes
1answer
828 views

Color Scheme name for <?php tags in Sublime Text 2

I've been messing around with my color scheme and now I can't figure this out: How do I go about changing the color that <?php will show up in my .php files? I've done a lot of googling and some ...
2
votes
2answers
1k views

Sublime: Save set of tabs to open

I have several files that I edit frequently, and I need all of them open at the same time. I am wondering if there is a way in sublime to save a set of files to be open...sort of like how in chrome or ...
2
votes
2answers
241 views

How can i open the same project in several windows?

I have a big project with several subproject and i would need a window for each sub project. I do : bash> sublime_text --project $path_to_project & bash> sublime_text --project ...
2
votes
1answer
417 views

sublime text 2, i can not use double click to select a word

Characters that are considered to separate words: "word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?" Triple-clicking I can select the line, but double-clicking, I cannot select the ...
2
votes
2answers
560 views

ipython and sublime text 2

I really love how Rstudio has a shortcut for running a line of selected code, this allows for much quicker coding. I notice more and more however, that I need to work in python as it offers a bit more ...
2
votes
1answer
2k views

Vim: Fuzzy file search comparable to Sublime Text 2's?

I've tried FuzzyFinder, ⌘+T, and Ctrl+P (which is my finder of choice right now), but none hold a candle to Sublime Text 2. For example, I want to type: Head.php and have it find, among others: ...
2
votes
1answer
275 views

Sublime Text 2 Build File - Backslashes

I am trying to setup a custom build in Sublime Text 2. I am having difficulty getting the backslashes in the UNC path path below. When I run this command I always end up with only one backslash ...
2
votes
1answer
790 views

Change spell check dictionary in Sublime Text 2

Is there a dictionary of technical/computer/internet words to supplement Sublime Text 2's default dictionary? For example, words such as "blog", "online", "wifi" are all considered misspelled given ...
2
votes
1answer
2k views

Use Notepad++ styles with Sublime Text 2

Is it possible to use notepad++ syntax themes/styles with sublime text 2? If so, how do I do this. I code COBOL programs, and love some of the features in sublime. But it lacks the syntax ...
2
votes
1answer
455 views

looking for an alternative to refile in orgmode for emacs

In emacs/orgmode there is something called refile. you select text, hit refile and you get a list of your outline headlines, select one and your text goes there. Can I achieve something like this in ...
2
votes
1answer
340 views

Sublime Text 2 not using new icon in Cmd-Tab on OS X

I had previously exchanged the default icon for a custom icon. Upgrading to the latest update, which included a new, official icon, did not change the icon used when I change between programs ...
2
votes
1answer
2k views

Toggle between column selection and regular selection in Sublime Text 2

In Textmate, I can make a regular multiline selection using the keyboard and switch to column selection mode by pressing the alt (⌥) key. I have not found a similar way of doing this in Sublime Text ...
2
votes
1answer
51 views

How to column select in Sublime Text 2 on a HP Envy laptop

I want to be able to column select in Sublime Text 2 on my HP Envy laptop (p/n: J4Z51EA#UUW) using the keyboard shortcuts Ctrl+Alt+Up or Ctrl+Alt+Down. By default, these shortcuts were used by Intel ...
2
votes
1answer
57 views

Sublime Text HTML Block Comment Containing Comments [closed]

Is there a plugin to help with HTML commenting a block of code that may already contain other comments? <div class="wrapper"> <div class="container"></div> <!-- /.container ...
2
votes
1answer
120 views

Sublime Text 2 remapping keys

I'm using sublime as my main text editor and I am remapping my arrow keys from the arrows to alt+i, alt+j, alt+k, and alt+l. I have noticed that on Ubuntu 14.04 after I remap my keys that when I ...
2
votes
1answer
41 views

make \w match characters like ÄÖÜäöüß?

Is it possible to customize the behavior of regex metacharacters for character classes like that? (In Sublime, or more generally.)
2
votes
0answers
295 views

Where is the console ST2/GDB

I'm using sublime text 2. I got GDB to work but I don't see a console window anywhere. I see the GDB console but nothing that outputs text from my C++ program. How do I use GDB and see my the console ...
2
votes
0answers
132 views

How to remap motions with a count in Sublime Text 2 vintage mode?

In my .vimrc, I have space remapped to move down 10 lines, and backspace remapped to move up 10 lines respectively: nnoremap <space> 10jzz nnoremap <backspace> 10kzz I want to configure ...
2
votes
0answers
63 views

Launching Sublime Text 2 on the command line doesn't result in opening the specified file

When I type subl ~/.profile I expect Sublime to open my .profile file. This works with some files, although I couldn't find a pattern to which files. Is this a bug in Sublime or have I done ...
2
votes
0answers
506 views

Sublime Text Build System for Heroku

I made a build system for Heroku Foreman on Sublime Text 2 (windows 8) { "cmd": ["foreman.bat", "start"], "working_dir": "$project_path" } When I run this in shell, I can just break, and ...
2
votes
0answers
1k views

LSOpenURLsWithRole() failed with error -128

I' opening an ML file from the terminal using an open command is OS X. Currently, the bindings are such that it opened the file through Sublime Text 2. I get the following error whenever I first open ...
2
votes
1answer
38 views

How to colorize some words in text in ST2?

I'd like to highlight a word in a text with a specific color. Or make it bold/italic/underlined. Is there ST2 plugin allowing bolding/colorizing/italizing words in text?
2
votes
0answers
50 views

Sublime Text 2 long web fetch time

Always when Sublime Text 2 connects to the web, e.g. for listing and fetching packages with Package Control, it takes a huge amount of time to load. I even had to disable the LiveReload Package ...
2
votes
0answers
596 views

Get sublime text 2 (sublimecodeintel) to parse mason

So Sublime Text 2 seems to getting a lot of love lately. I am using the Sublime Code intel plugin, for auto completion. The problem is, it does not recognize .mi files as MASON files. I looked into ...
1
vote
1answer
773 views

Sublime Text 3 slow saving to network drive

I've got a project I'm working on in SharePoint. I've mapped the SharePoint library to my computer and have been working on the files using sublime text 3. However, saving files in sublime is taking ...
1
vote
2answers
65 views

Editing a sublime theme, how to know which key string corresponds to which text element in the code?

I want to customize the color scheme of the comments in my code, by editing the .tmTheme How to know which of the <dict> <key> corresponds to which element of the code? Like, I can ...
1
vote
1answer
573 views

SublimeText - Ubuntu 14.04 (Radeon 8650) - Very slow performance

I've been using Sublime for a couple of years now and it's been fine until a couple of days back, when I upgraded to Ubuntu 14.04 on a AMD APU A10 machine. I was using 12.04 on a Core i3 processor ...
1
vote
2answers
141 views

Regex to match only if beginning of line isn't something?

I have some lines that I'd like to match and some lines I'd to exclude from matching in a file. I'd like to not match remote access</a> (main card) and would like to match anything ...
1
vote
3answers
531 views

How to remove bullets from the gutter toolbar in Sublime Text 2?

I don't know how these bullets appeared in my gutter toolbar: How can I remove this from my Sublime editor?
1
vote
1answer
351 views

Is there anything like “Run” in Sublime Text 2?

Is there a way to launch a page in browsers from Sublime Text 2 ? Like Run in Notepad++?
1
vote
2answers
417 views

Sublime Text 2 'text bubbling'?

In vim and Notepad++ I have an awesome feature either mapped or built in that I've seen called text bubbling. I know about the Sublime documentation for mapping my own, but wanted to make sure I ...
1
vote
1answer
850 views

How to generate ordered and unordered list from couple lines in Sublime Text

How to efficiently generate ordered and unordered list from couple of lines? Let's say: list item 1 list item 2 list item 3 into <ul> <li>list item 1</li> <li>list ...