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

learn more… | top users | synonyms

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
1answer
116 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 ...
3
votes
1answer
3k 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
1answer
2k views

Open Sublime Text 2 with new tab instead of new window

I've got an alias to open files in Sublime Text 2: alias sub='/Applications/Sublime\ Text\ 2.app/Contents/MacOS/Sublime\ Text\ 2' But this spins up another instance of Sublime Text 2 (complete with ...
3
votes
2answers
2k views

Sublime Text Conflicted Shortcuts

I need to install two Sublime Text plugin but their shortcut keys are conflicted. How can I fix this? Thanks
3
votes
1answer
127 views

Brackets Text Editor - “Go to anything” feature like Sublime Text

I love Sublime Text and I'm playing with Brackets editor for a change. One of the features I like most in ST is the "Go to anything" (CTRL+P). Is there something like that in Brackets?
3
votes
3answers
908 views

Sublime Text 3: How to jump to the parent/enclosing function?

Is there a quick keyboard shortcut or Command Palette function to quickly jump to the parent/enclosing function? So if the cursor is in a function, then I want to quickly jump to the first line of ...
3
votes
1answer
850 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
57 views

How to make Sublime Text stop asking me to reload every file

I had several thousand files open in a Sublime Text project and those files were modified outside of Sublime so it started prompting me whether or not I wanted to reload the file or cancel. But if I ...
3
votes
1answer
36 views

Determine which plugin is overriding key bindings

I'm using Sublime Text 3 on Windows 7. In Key Bindings - default: { "keys": ["f9"], "command": "sort_lines", "args": {"case_sensitive": false} }, { "keys": ["ctrl+f9"], "command": "sort_lines", "args"...
3
votes
1answer
130 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 --...
3
votes
2answers
2k views

How to set PHP syntax for a file without <?php tag?

When I set syntax to PHP in Sublime, all thing is good in my PHP code: But when I remove <?php tag from my code, the syntax highlighter doesn't work anymore: How can I tell sublime to do ...
3
votes
1answer
481 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
1answer
738 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
1answer
584 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
88 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
2answers
472 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 href="spot.html">Spot</a></li&...
2
votes
3answers
5k 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
1answer
2k 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 ...
2
votes
1answer
1k views

Use Sublime Text 2 Windows keybindings on a Mac?

I use Sublime Text 2 on Macs and PCs. It would be nice if I could needed to commit only one set of shortcuts to muscle memory. Is there a way to export my Windows bindings and and use them with OS X?
2
votes
2answers
439 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 wasn'...
2
votes
1answer
1k views

View document position window on right side in Atom editor like Sublime Text?

The title pretty much covers it. In Atom can you display the position where you are in the current document like you can in Sublime Text? An example of what I'm talking about can be seen on Sublime's ...
2
votes
3answers
671 views

Disable a Sublime key-binding entirely?

I want to get rid of these completely: { "keys": ["ctrl+up"], "command": "scroll_lines", "args": {"amount": 1.0 } }, { "keys": ["ctrl+down"], "command": "scroll_lines", "args": {"amount": -1.0 } }, { ...
2
votes
1answer
332 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
2answers
3k 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
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
823 views

Sublime Text 2 Keeps Growing due to Backup folder

My Sublime Text 2 Installation folder keeps growing as the backup folder getting bigger. I think it is due to package control plugin. Every time, it updates, it creates dated folder in Backup. Is ...
2
votes
3answers
900 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
3answers
1k 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?
2
votes
2answers
324 views

How to remove extra invisible character in a text editor

I have two "identical" 5-character strings in my text editors (Sublime Text2 | Notepad++). The first string was copied from Gmail and the second one just typed by hand. When I select the first ...
2
votes
1answer
132 views

Customize “wrap” characters in Sublime Text

In Sublime Text, highlighting any text and pressing any of the following symbols: ' " ( { [ will cause the entire highlighted section(s) to be surrounded by the key you pressed (or its matching ...
2
votes
1answer
1k views

Uninstall Sublime Text 2

I'm upgrading from Sublime Text 2 to Sublime Text 3 on my Windows 7 PC. Add/Remove Programs does not have any entries for Sublime Text. How do I remove Sublime Text 2 completely, including removing ...
2
votes
1answer
264 views

Change the keybinding to exit (alt+f4)

I'm currently using linux and pretty much every program with a GUI exits with ctrl+q. Is there a way to change the default alt+f4 to ctrl+q instead?
2
votes
2answers
3k 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
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 manually....
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
2k views

sublime 2 rails multi line comments key command

when coding ruby in sublime text 2, are their key commands for multi line commentS? class Myclass include MyMethods def instance_method puts "hi from the instance method" ...
2
votes
2answers
121 views

Sublime text Find Replace any Character

Is there a way to find and replace using a special character that would allow any char to be in it's place? What I mean by this is say I have the following text: setI0100(mds3a1.getI0100().toString()...
2
votes
1answer
92 views

Is it possibile to attach snippet only to specific project in Sublime?

I tried to save the snippet files in the project folder but it is doesn't work. Do you have any other idea?
2
votes
2answers
2k views

sublime text 3 on mac os not keeping project open

I'm using sublime text 3 on mac. Whenever I've had a project or folder open and closed the window (not quit the app) it would remember where i last left off, and open my last window. I noticed now ...
2
votes
1answer
4k views

Formatting or beautifying javascript in SublimeText

The thread " Is there an HTML auto-indentation feature or plugin for Sublime Text (aka prettify/beautify/format)? " refers to an HTML formatter for SublimeText. Does anyone know of something ...
2
votes
1answer
130 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
297 views

Sublime Text 2 Key Bindings - Is there any way to detect left/right modifier keys?

Is it possible to make Left Alt+A and Right Alt+A do different things? And of course, other modifier keys. If not, maybe the following idea would work? If AppleScript, Python, Ruby, Perl etc. can ...
2
votes
2answers
2k 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
2k 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
1answer
824 views

How do I force opening new files in left pane/column in Sublime Text 2?

I am using Sublime Text 2 on Windows 7, I have configured it to use 2 columns for split editing (in menu: View > Layout > Columns: 2), so now I have 2 panes. When I open new file through Total ...
2
votes
1answer
449 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
956 views

Sublime Text 2 instant file search replace key binding

Instant file search (File: Search Files) is bound to Ctrl+Alt+F by default in my installation of Sublime Text 2. I can't find that combination in Default (Windows).sublime-keymap. On my keyboard ...
2
votes
2answers
263 views

Files last modification date

This seems like such a simple thing that I'm convinced I must be just missing it somewhere. Is there a setting or a plugin that will display the last modification date/timestamp of the file you are ...