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

learn more… | top users | synonyms

2
votes
3answers
1k 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
148 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 ...
0
votes
0answers
14 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 ...
12
votes
1answer
4k views

How do I assign a keyboard shortcut to recorded macro in Sublime Text

I have a bunch of macros which I have recorded and saved in Sublime Text 2. I'm trying to assign keyboard shortcuts to each of those, but I'm kind of lost as to how to go about doing this, I had a ...
0
votes
0answers
16 views

Simple Sublime/Emmet shortcut

I've seen several videos on how people use Sublime/Emmet to create quicker tags and I would like to learn the proper way to do this. I know how to do this for example: div.class and it will create ...
5
votes
1answer
8k 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. ...
0
votes
1answer
43 views

Can Sublime Text alter CSS file properties and values to each line

I was wondering if you could in Sublime Text alter a .css file from: selector { property: value; property: value; } to: selector { property: value: property: value; ) ...
0
votes
0answers
23 views

Is it possible to filter what program defaultly opens a file depending on if that file has a particular tag?

Just more of a convenience thing. For instance if I saved a webpage which I was editing and assigned it the tag Sites. Is there anyway that I can filter what program default opens this kind of file, ...
0
votes
1answer
27 views

How do I change the file encoding in Sublime Text 2?

Using all those techniques like: { "Default_encoding": "UTF-8", "font_size": 9, "ignored_packages": [ "Vintage" ] } and even when I save with UTF-8 encoding, always ...
2
votes
0answers
27 views

Sublime Text HTML Block Comment Containing Comments

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 ...
0
votes
0answers
15 views

(osX) Applescript to run compile shortcut in TexShop not working while in Sublime Editor

I'm trying to write an script so that when I'm in Sublime I can use a keyboard shortcut to get it to: save in sublime compile in TeXShop (I'm using it with the external editor setting) then switch ...
-2
votes
1answer
21 views

Could you modify a file from a game in this manner?

What I am about to ask is probably going to sound like science fiction, but if I grab a usb, hook it up to my xbox and copy (for example) madden 15 to it. Then I plug it into my computer and open it ...
0
votes
1answer
125 views

Is it possible to run Minitest tests within Sublime Text 2?

This package allows you to run rspec and some other testing frameworks' tests from within Sublime Text 2. Is there a similar method for testing Minitest tests? I haven't been able to find anything ...
0
votes
0answers
18 views

Is there a way to assign keys in the command pallet list to jump to desired item instead of the default item in sublime text?

In the command pallet, when I type "gl", the default option is "Git: log", but I would rather have it "Git: Graph All". For example, I type in "gl" and instead of the default option "Git: Log All", ...
1
vote
0answers
20 views

How to find out which command corrosponds to which command pallet list items in sublime text?

The git plugin for sublime text has many options populated in the command pallet but I want to assign keyboard shortcuts to some of them. How do I find out which commands to use for those commands? ...
4
votes
2answers
301 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 ...
0
votes
1answer
13 views

Text editors with grid cursor alignment function?

I don't know how it is called properly, if it has some exact term. I use text editor called ConText which has different way to positioning cursor in a document, so it is like grid-oriented. It means ...
0
votes
0answers
19 views

Windows : Clearing contents of a locked file using notepad++ and getting new contents

Trying to clear the contents of a locked file using notepad++. Contents got cleared and the new contents not get updated instantly. I can view those contents only after restart. I once got this ...
0
votes
1answer
20 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 ...
7
votes
3answers
2k 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. ...
2
votes
1answer
752 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: ...
0
votes
1answer
28 views

Choose first comma after specific pattern on each line

I have almost thousand lines each with the same structure and I have to edit one part of it. "650","4","The lenght of this part varies, Here's some commas, here, and, there" "203","4","Now this is ...
1
vote
1answer
107 views

How can i increase file tab size of sublime text 3?

i just started using sublime text3 on windows 7.The font size of file tab is too small for me. Is there a way to change tab color to white? How can i increase file tab size? How can i increase file ...
1
vote
1answer
37 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 ...
3
votes
4answers
7k views

auto-close HTML tags in Sublime Text

I'm using Sublime Text 2, and I'm sure there must be a way to make it auto-close XML/HTML tags, the way for example Notepad++ can. Is there a way to have it add </div> immediately after I type ...
0
votes
0answers
61 views

Sublime text 2 Unable to save hidden files on windows

In windows, upon saving changes to a file that's hidden, sublime text 2 throws the error "Unable to save". The good commenter below confirms it's only me who's having this problem.. I've tried ...
0
votes
0answers
16 views

Open file from Sublime Text with shortcut

I would like to add a shortcut (shift+ctrl+alt+o) to open the current file in Total Commander. I already know the arguments for Total Commander (/O /T "path"), but need help with Sublime Text 2.
4
votes
5answers
2k 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
33 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
40 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
27 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
12 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
78 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
21 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
312 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
2k 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
368 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
30 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 ...
0
votes
1answer
31 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
112 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
9 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
81 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
218 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
328 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
70 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 ...
1
vote
0answers
33 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
34 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
40 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, ...