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

learn more… | top users | synonyms

1
vote
1answer
12 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 ...
2
votes
0answers
20 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 ...
0
votes
0answers
14 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
29 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
2k 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 ...
5
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
16 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?
25
votes
5answers
8k 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
15 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 ...
3
votes
2answers
969 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
12 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
33 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
125 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
13 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
16 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 ...
-1
votes
0answers
12 views

Sublime Text show opened files shortcut

It should very useful can show a list with all opened files with just a keystroke and navigate up and down to move to it. Anyone knows a shortcut or a maneuver to achieve it? 1) Show this list is ...
2
votes
0answers
97 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
391 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
12k 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
37 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
29 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
29 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 ...
0
votes
0answers
14 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 ...
1
vote
2answers
1k 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
14 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
39 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
30 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 ...
8
votes
2answers
601 views

How do I record and run multiple find/replace with Sublime Text 2?

How do I record and run multiple find/replace with Sublime Text 2? I tried recording a macro but, as it seems, Sublime won't record find/replace, only text input etc.
0
votes
0answers
19 views

How to define new scopes using arbitrary delimiters in Sublime Text 2

TL;DR: How do I bring Ruby-like comment scope to plaintext files for sublime text? I want to customize my plaintext file look in ST2 by allowing comments. So far I have managed to extend the ...
0
votes
1answer
13 views

How to execute key combination (^,, f) in sublime REPL?

I installed sublime REPL where the key map for evaluation file content in REPL is "^,,f". How can I use keyboard for clicking the key sequence? I tried ',',',', and 'f' while pushing control key, ...
0
votes
0answers
97 views

How to revert changes on a file in sublime-text 2?

Through some horrible circumstances one of my files has been changed without me knowing, possibly by repeatedly having pressed Ctrl+Y or something like that. Is there are any internal buffer in ...
0
votes
0answers
20 views

Sublime Text 2: refactor Python line into method / create a method

ST 2, Python. Code in body of class method: print 'here' bar = foo(*args) I'd like to select foo and refactor it into a class method, or create it if it does not exist yet: def foo(self, *args): ...
0
votes
0answers
35 views

Selecting words with the keyboard in Sublime Text

I'm using Sublime Text 3 on Windows 8.1. Could be ST2, I don't think this is relevant. I'm aware we can add multiple cursors to select different portions of different lines. Also, if we're looking ...
0
votes
1answer
22 views

Checkpoint code in text editor (like a micro version control)

When I'm editing code, I want to periodically checkpoint my code (ranging from every 10-20 minutes to a few hours). Consider it as a micro version control at local level & something that I discard ...
1
vote
1answer
298 views

How to change Sublime Text temp file location?

Sublime Text stores the temp file alongside the file under edit as ._foo.txt. How to change it's location and/or naming scheme? In could do it in say vim with set dir=/var/tmp, is there anything ...
0
votes
1answer
56 views

Sublime indenting style of Latex files

Here is a part of my LaTex code and what I want it to be: ... \begin{center} \begin{table} \begin{tabularx}{\textwidth}{|l|l|l|X|X|X|X|} ... However, if I re-indent it in Sublime Text ...
1
vote
2answers
400 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 ...
16
votes
3answers
31k 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
votes
1answer
50 views

Sublime Text 2 theme from this screensot [closed]

Just found a screen of a fresh looking dark SB2 theme, file is of literate coffeescript: If anyone recognises it can you answer with a package name.
0
votes
0answers
58 views

In Sublime Text, how can I specify the fold level, with keyboard shortcuts, without having to unfold all first?

I'm trying to work out how to get code folding working how I want in Sublime Text 2. I can ⌘+K, ⌘+J to unfold all. Then I can do ⌘+K, ⌘+1 to fold all. At this point, I want to be able to go straight ...
11
votes
4answers
5k views

How to open file using only keyboard in Sublime Text?

How do I open a file using only keyboard in Sublime Text 2/3? Looking for equivalent of <Esc>:e /path/to/file from Vim.
1
vote
1answer
150 views

Sublime Settings — Syntax Specific: “show_panel_on_build” not overriding with Markdown syntax

I am trying to turn off the build panel showing on build when using markdown syntax. I am on OSX and using Marked for markdown preview and I don't want the build panel popping up with a pointless ...
2
votes
2answers
65 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?
0
votes
1answer
138 views

Better setting of EDITOR environment variable to use Sublime Text 2 as system editor?

I want to use Sublime Text 2 for editing Git commit messages. Right now I have the following in my bash rc file: export EDITOR="sublime -nw" This works well if Sublime is already running. But if ...
0
votes
2answers
343 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?
5
votes
2answers
2k views

Edit both opening and closing html tag

Is there a way (core or plugin) that a closing html tag name changes accordingly when renaming the opening one ? A behaviour similar to multi-selection...