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

learn more… | top users | synonyms

4
votes
5answers
1k views

I can't write the open square bracket in Sublime Text 2 - How can I find out why?

I'm running Sublime Text 2 on Windows x64 with the following packages installed: Package Control CoffeeScript EncodingHelper GIT MarkDown Preview Python PEP8 Lint Stylus SFTP Theme - Soda I had ...
1
vote
2answers
26 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 ...
0
votes
1answer
11 views

sublime text: hide view group without closing it

I open multiple groups in sublime and then want to temporarily hide some of them, in order to maximize the screen space of the others. But I don't want to close the group, because I still want to use ...
0
votes
1answer
16 views

In a sublime theme, what scope key defines the color of the cursor?

I'm trying to change the color of the cursor in a Sumblime theme. What scope key defines the color of the cursor in .tmTheme file?
0
votes
1answer
8 views

Edit Project directly from remote server

I am currently working with PHP/HTML on a remote server via PHPStorm. I love how intelligent it is, but i dont like how it forces me to have a local project and that i have to sync it. Is it any way ...
0
votes
0answers
57 views

How to use “Search and replace” in selected text in Sublime Text 3

I want to select text and then use "search and replace" to replace strings in this selection. I think the following workflow should be it: Select Text Ctrl+H to activate "search and replace" type ...
0
votes
1answer
18 views

Sublime always opens with the same files loaded

Running Ubuntu 12.04 and Sublime text 2 I can close them a hundred times. I've tried with ctrl+q and ctrl+w. I have changed hot exit to false and remember windows to false and rebooted. But when I ...
2
votes
1answer
224 views

How to prevent ST2 from searching in excluded folders?

I've got a sublime-project like this: { "folders": [ { "path": ".", "folder_exclude_patterns": ["_doc", "cache", "logs", "_release"], "file_exclude_patterns": ...
2
votes
2answers
1k 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. ...
4
votes
1answer
329 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 ...
1
vote
1answer
21 views

Sublime shortcuts for commonly type code

I use Sublime often and I find myself typing many of the same bits of boilerplate code on a very regular basis. For example, something as mundane as <div class="row"> </div> Is there ...
2
votes
2answers
882 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 ...
0
votes
1answer
26 views

How to delete whole python and reinstall?

I have set the python window size wrong. I set the width to something like 99999 and caused a crash. Since then, I tried to delete every package installed with python, and then reinstall, but this has ...
0
votes
1answer
2k views

Convert text file to ASCII, not ANSI in Sublime Text

We have a project where we need to convert weird characters generated from all kinds of file formats into ASCII due to compatibility issues. Is it possible in Sublime Text 2 to convert the encoding ...
0
votes
1answer
51 views

Keep console open in Sublime Text 3 even when using `find`

I have started using gulp to run my website build process. As part of the process is linting I need to ideally have eyes on the console log for any errors. Therefore rather than running it in ...
0
votes
0answers
5 views

define hotkeys minimize and restore Window on the sublime text 2

I want to create a hotkey to minimize and restore the sublime but even the Main.sublime-menu is undefined ! { "keys": ["ctrl+shift+w"], "command": "toggle_minimize_restore_window" } I apologize ...
3
votes
1answer
2k 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
1answer
48 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 ...
3
votes
1answer
204 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 }, ...
0
votes
1answer
109 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
42 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 ...
0
votes
0answers
19 views

In Sublime Text 2, how do I highlight any code which is between <?php and ?>

I'm coding in php for a Wordpress project at the moment and using Sublime Text 2. It's great, however, I would love to be able to quickly see what is php and what is html (also javascript, but that is ...
0
votes
0answers
18 views

PHPStorm -> Sublime Text mac shortcut

I have googleing around for this, but have not found the answer. I have just gone from sublime text to PHPStorm. Is there any similar shortcuts for selecting variable(CMD+D), multiple cursor etc?
0
votes
0answers
30 views

Sublime key binding not working

I am trying to bind some keys to handle some layouts in sublime, and they are as follows: { "keys": ["super+alt+ctrl+down"], "command": "set_layout", "args": { "cols": [0.0, ...
0
votes
1answer
48 views

Firefox developer tools Color Scheme for Sublime text 2

How to find a Color Scheme (file "*.tmTheme") with Firefox developer tools for Sublime Text 2?
3
votes
3answers
3k views

Command Line from within Sublime Text

I recently switched from Notepad++ to Sublime Text 2, and it's amazing. There's one thing I'd appreciate and that's compiling my files from the same environment. Sublime text has a console and a ...
6
votes
1answer
2k views

Convert variables between camel case and underscore style

I would like to convert variables from or to UpperCamelCase, lowerCamelCase, underscore_style, or even "separate by spaces". This would be useful for coding and making documentation. I use Sublime ...
0
votes
0answers
20 views

can't edit hidden files in sublime text 2

In windows, upon saving changes to a file that's hidden, sublime text 2 throws the error "Unable to save". Is there a setting or something to enable editing of hidden files?
26
votes
5answers
9k views

Can I right-click a folder in Windows 7 and choose “Open with Sublime Text”?

In Windows 7, I can do this at the command line: "c:\Program Files\Sublime Text 2\sublime_text.exe" samplefolder This launches a Sublime Text window, with the contents of samplefolder loaded in ...
0
votes
1answer
22 views

Cannot create key bindings with the pipe-key on my Norwegian keyboard in Sublime Text 2

I am trying to bind ctrl+| to Show Console in Sublime Text 2 on a Norwegian keyboard using the following line in the (json?) configuration file: { "keys": ["ctrl+|"], "command": "show_panel", "args": ...
2
votes
1answer
1k 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 ...
4
votes
2answers
1k views

Renaming open files in sublime text 2

I am trying to rename open files in sublime text 2. In version 2.0.1 Build 2217, you could rename by pressing f2 or by opening the command palette by pressing Ctrl + Shift + P and entering rename. ...
0
votes
1answer
18 views

No Replace function with COMMAND+ALT+F shortcut in Sublime Text on mac

CMD+SHIFT+E (which is for Replace Next function) works fine. Pressing CMD+ALT+F doesnt even highlight the Find menu momentarily. I can't work out where is the shortcut going, or what's highjacking it. ...
1
vote
1answer
47 views

Change project in sublime text, sourcetree & codekit

I'm a web developer, and often need to switch between projects. This means I need to: Change project in Sublime Text 2 Change project in CodeKit Change project in SourceTree Note: I'm using Mac ...
0
votes
1answer
149 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 } }, { ...
0
votes
0answers
14 views

Sublime Text unaligned elemets in bottom pannel

I'm using padding properties for code view formatting to add air between lines: "line_padding_bottom": 6, "line_padding_top": 6, but in search panel (and other bottom tool panels) icons is ...
0
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 ...
0
votes
0answers
22 views

Increase textarea padding in Sublime Text

Is there a way to increase the spacing between the title bar and the textarea in Sublime Text? As you can see, the first line of code is too far up. The following worked, but I'd like know if ...
2
votes
0answers
102 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 ...
0
votes
0answers
7 views

When I close a tab in sublime text, can I have it select the tab above it, instead of the previously selected tab?

Is there a setting to do this? Lots of times I want to close many tabs in a row based on their position in the tab bar but instead the last interacted with tab gets selected instead meaning I need to ...
0
votes
2answers
396 views

Sublime Text 2 focus sidebar on opening

Is it possible to auto focus the side-bar upon opening? I am not able to form a proper command in my keymap file... I need to combine toggle_side_bar with focus_side_bar
9
votes
3answers
14k 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> ...
0
votes
1answer
82 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?
0
votes
0answers
42 views

Sublime Text 2 + Eval in REPL

Using sublime text 2 on windows 8, I've set my key-bindings to: [ { "keys": ["ctrl+alt+f"], "args": { "id": "repl_f#", "file": "config/F/Main.sublime-menu" }, ...
0
votes
1answer
39 views

Shortcut comment next to tags in BBedit

In Sublime Text 2 I can create a comment next to a tag by using shortcut alt+cmd+/ which results in something like this: <a href=""></a><!-- --> How can I shortcut comments next ...
1
vote
3answers
1k 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 ...
1
vote
2answers
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 ...
0
votes
0answers
23 views

Sublime Text: Do not save readonly files on focus lost

Some files may be readonly, and I become annoying modal windows after losing focus. Is it possible to disable the "save_on_focus_lost" option only for readonly files?
0
votes
1answer
40 views

What is the hotkey to perform a replace in the Find in Files dialog?

Hovering over the Replace button does not show me a hotkey in the Find in Files dialog. What is the hotkey to do so? Otherwise, how can I give it one?
1
vote
0answers
31 views

Sublime Text 2: leave goto windows on focus lost

How to set it not to close goto window: For example, I open it to install package, then Alt+Tab to browser. When I choose what to install and go back to Sublime - there is no more goto window so I ...