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

learn more… | top users | synonyms

2
votes
1answer
71 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
0answers
518 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 ...
0
votes
1answer
187 views

How to adjust tab completion in Sublime Text 2

Is there a way to "complete completion within completion"? Example: Completions: 'fra' => '\frac{$1}{$0}' 'bf' => '\mathbf{$0}' I do fra<tab>bf<tab> and want to have ...
5
votes
2answers
979 views

vi/vim alternative to sublimetext's “Expand selection to scope”

Sublime text has a cool feature called "Expand selection to scope" SHIFT+CMD+SPACE which selects the everything within the scope. It select everything in scope, works perfectly ( ) or [ ] or { } ...
1
vote
1answer
2k views

Sublime Text 2 - Assign a keyboard shortcut to a tool

Is there any possible way of assigning this tool to a keyboard shortcut? I'm using this tool because the builtin console in Sublime Text 2 doesn't support interactivity (entering inputs....etc).
24
votes
3answers
53k views

Sublime Text 2 - Encoding UTF-8

How do I change the file encoding in Sublime Text 2? How do I change character encoding of a text file in OpenOffice.org writer? http://www.sublimetext.com/forum/viewtopic.php?f=4&t=3541
1
vote
1answer
197 views

How do I use regex curly braces in SublimeText2

SublimeText's regex parser doesn't seem to work like others. If I write (.*{50, 51})+, or (.*{50,})+, or (.*{50})+, it doesn't grab sets of 50 characters. I think it tries to match the { as a ...
3
votes
1answer
3k 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 ...
2
votes
1answer
427 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 ...
5
votes
2answers
2k views

Is there emacs plugins to do Sublime-like completion and goto anything?

In Sublime Text 2, I can enter prnfunc[tab] and then it completes to 'PrintFunction'. If I have a project, I can press Cmd+P and enter srcpy/hello.py and then it navigates to ...
4
votes
1answer
2k 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 ...
5
votes
1answer
3k views

How to display whitespace characters in Sublime Text 2

I'd like to be able to see the whitespace characters used in files that I edit with Sublime Text 2 so that I can see when a tab is used instead of a space and replace that just to provide one example. ...
0
votes
1answer
245 views

In Sublime Text 2, is it possible to remap space space to save in vintage mode?

I've been attempting to recreate my Vim setup in Sublime Text 2. One of the commands I most want to get working is to map space + space to save in normal/command mode. In Vim I have this keybinding: ...
1
vote
1answer
428 views

How do I select the next error selection in Sublime Text 2?

Build systems and plugins can highlight errors (e.g. compile errors) in your code, creating red selections. How can I jump to the next/previous error selection?
0
votes
0answers
563 views

How to dumb-down python auto-indentation in sublime text 3

I am using Sublime Text 3, and the auto-indent is a problem for me. Basically, all I want is auto-indent to the same indent level as the previous line, similar to gedit's dumb but predictable ...
1
vote
0answers
258 views

Vimdiff functionality in Sublime Text 2

I wanted to know if it is possible to have a vimdiff like functionality to check for diff and have synchronized scrolling of two (or more) files in Sublime Text 2 just like vimdiff? Thanks
6
votes
2answers
13k views

Sublime Text 2: Disable cursor position overwriting characters (like vim replace mode)

I'm not sure how, but I managed to get Sublime Text into a 'Replace Mode' which at whatever position the cursor is at, it overwrites the next character with whatever you press instead of inserting it. ...
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 ...
4
votes
2answers
349 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 ...
1
vote
3answers
485 views

Sublime Text 2: Ruby Markers plugin error

Environment: Mac OSX 10.8.3; Ruby 1.9.3-p392 via rbenv; ST2 version 2.0.1 build 2217; I have installed the Ruby Markers plugin for ST2 and the gem rcodetools (which the plugin requires) However when ...
13
votes
1answer
2k views

Opposite of CTRL+D in Sublime Text 2

In Sublime Text 2, one may extend selection to include the next occurence of the current selection with CTRL+D. I often find myself pressing this one too many times, necessitating I clear selection ...
15
votes
3answers
21k views

Is there an HTML auto-indentation feature or plugin for Sublime Text (aka prettify/beautify/format)?

For example, something to change: <section><article><h1></h1><p></p></article></section> to: <section> <article> ...
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 ...
1
vote
0answers
98 views

I can't get the REPL plugin to work for some languages

I've installed the SublimeREPL plugin, but when I try to use REPL for some languages it gives me this error: Windows Error(2, 'The system cannot find the file specified.') This happens for some ...
5
votes
2answers
9k views

How to uninstall packages from Sublime Text 2

I'm using a portable version of sublime text 2 on windows. And I'm trying to uninstall some packages which are on this directory: D:\Downloads\sublime\Data\Packages The problem is that it always ...
16
votes
1answer
10k views

Hotkey to remove duplicate lines in Sublime Text 2?

I'd like to add a hotkey for the menu item Edit>Permute Lines>Unique, but what I've added to my user keybindings isn't working: [{ "keys": ["f8"], "command": "permuteLines method unique" }] What ...
-1
votes
2answers
602 views

Fresh Linux Mint 14 install not executing eclipse and sublime text

I just upgraded from Linux mint 13 to 14 Cinammon. The problem is I have the tar files of sublime text and eclipse that I usually extract and run but after I upgraded to Mint 14 I get the error in the ...
2
votes
2answers
565 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 ...
0
votes
1answer
4k views

sublime text 2: auto format php?

Is there a plugin that can format and indent PHP automatically with sublime text 2? I'm really used to aptana and have taken for granted the ctrl + alt + f.
3
votes
0answers
84 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 ...
1
vote
0answers
137 views

Sublime TextEditor 2 in Vintage mode completion

I have several problem with my autocompletion which I want to fix: I have completion by Space. I want that when I press Space means I don't want completion I want a space symbol now. I want to ...
5
votes
1answer
3k views

How to make Sublime Text 2 spell check comments only?

The built-in spell check feature seems to be running over the whole code, underlining lots of text that is supposed to be that way i.e. the code itself. Any way to limit it to just comments (//)?
5
votes
1answer
2k views

Mac: Edit in Filezilla with Sublime text always open a new Sublime window

With my Mac, everytime I want to Edit a file from Filezilla, it open a new Sublime text window. Is there a way to tell Filezilla to open the file in the current window if it already exist?
0
votes
1answer
92 views

sublime text 2: ignore more than one file extension for

How do you ignore more than one file extension your project settings. The documentation provides an example of just one file setting being ignored: { "path": "docs", "name": ...
0
votes
1answer
555 views

Trouble modifying .bashrc file to alllow sublime text 2 in git-bash

I would like to change or add the ability to open files when working with mingw32 with a different text editor (in my case sublime text 2). I would like to be able to do the following from the ...
1
vote
1answer
560 views

Filtering Sublime Text 2 buffer contents through an external program

I am trying to add uncrustify for my C++ code formatting in Sublime Editor 2. I know that there are some ways to run external process in SE2. But the main problem is that cannot update the buffer ...
0
votes
2answers
1k views

how can change default text editor in mingw32

I would like to change or add the ability to open files when working with mingw32 with a different text editor ( in my case sublime text 2 ) I have been googling around but I'm not sure i understand ...
1
vote
1answer
524 views

Returning to command prompt after piping output to Sublime Text 2

I am running Sublime Text 2 and OS X 10.7.5. Frequently, I will run a command from the Terminal and redirect the output so I can view it in Sublime. For example: svn diff | subl When I do this, I ...
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 ...
-1
votes
1answer
369 views

Cheat sheet, sublime text 2 for mac 13 inch keyboard [closed]

I need full keyboard shortcuts for sublime text2 on macbook retina 13 inch. Searched google but didn't get a full chart that I could print.
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?
6
votes
1answer
3k views

How can I set key bindings for menu items in Sublime Text 2?

There is no keyboard shortcut for menu items such as Refresh Folders. I have to use my mouse every time. How can I define key bindings for menu items in Sublime Text 2?
2
votes
0answers
145 views

How can I focus the document and “unselect” everything in Sublime Text?

Can someone tell me if there is a better way to deselect than using the ESCAPE key? I'm Using OS X. I often get frustrated when using sublime text if the focus is in the search box at the bottom and ...
6
votes
1answer
549 views

Sort (permute) lines by length in Sublime Text?

I'm looking to sort lines by length. I see how to do it by alpha or reverse alpha, but is there a way to see shortest to longest? Good writing mixes sentence lengths, and I'd find it very helpful if ...
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 ...
1
vote
1answer
236 views

Tab Twice on Snippet to get alternate option Sublime Text 2

I've recently switched to Sublime Text 2 for Rails development and I'm trying to understand how to get alternate options for snippets. For example in a rails migration the snippet mcol + [tab key] ...
4
votes
1answer
3k 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
611 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

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 ...
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?