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

learn more… | top users | synonyms

2
votes
1answer
2k 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 ...
1
vote
0answers
7 views

Sublime Text: “for loop” text insert?

Let's say I'm writing a JSON object with a lot of properties following this naming convention: ObjectName[x] So it looks like this: ObjectName_A: ... ObjectName_B: ... ObjectName_C: ... ... ...
5
votes
2answers
3k views

In Sublime Text how do you short-cut writing code?

My apologies but I do not know what its called, if this has been asked or what Stack site this is best suited for. I've seen several videos on how people use Sublime to create quicker tags and I ...
1
vote
2answers
497 views

How to undo when code collapses into an ellipsis?

I accidentally hit a key combination which collapsed my code to a yellow ellipsis symbol. Can anyone tell me how to undo it? There is no button or symbol on the left side that I can click. ...
0
votes
0answers
4 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?
1
vote
1answer
37 views

in sublime how to abort previous build automatically when building again

I know that there is key mapping to cancel build. But I want automatically when I press Ctrl+B, that it will abort the previous built. Is it possible? Is it possible, that the "cancel" build will do ...
1
vote
1answer
12 views

View file tree in Sublime when using Cyberduck

I use Cyberduck to open remote files and edit them via Sublime on my local machine. I want to be able to see the file tree of the remote system in the Sublime Text side bar. I've tried a few things ...
0
votes
1answer
32 views

Autocompletion for custom PHP classes in Sublime Text 2/3

How can I get autocomplete in Sublime Text 2 (or 3) to work with built-in and custom PHP functions, methods and classes? In Atom I've got it working with built-in functions, like this: In Sublime ...
4
votes
2answers
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?
0
votes
1answer
29 views

Having trouble creating symlink between the terminal in Mac OS X and Sublime Text 2 so it can be launched from the command line

I’m using Mac OS X Yosemite and I want to be able to open Sublime Text 2 from the terminal with a command like this: sublime . I’ve typed this into terminal as shown on the Sublime Text 2 website: ...
0
votes
0answers
13 views

How to preserve the Extended File Attributes in linux?

I'm working on a project where i rely mostly on the file's extended attribute that i set when i create the file. But i'm facing problem while modifying the file. Solid Example: When i edit the file ...
0
votes
0answers
4 views

In sublime, the command “set_build_system” not working

I am trying to change the build system using the "Edit Command Platte". Everything I tried didn't works. Things I tried: { "caption": "Set Build System: Mocha", ...
0
votes
1answer
16 views

How to make Sublime JSON syntax warn on extra comma

This is for how my sublime text look like when I edit a JSON file: I want that sublime will alert me when there are too many commas (like nodejs json.parse) I need it because some JSON parser ...
1
vote
1answer
50 views

How to create new command to execute a batch file with Sublime Text?

I need to create a new "shortcut" command in Sublime Text to run a BAT file. I know how to use build_systems and even build_systems per project. I want to add the command to the command palette list ...
8
votes
1answer
504 views

Open up results from Find Results window in new tab/column

In Sublime Text 2 on Mac, I am using the two column layout. Is it possible to open results from the Find Results tab (when I search through a directory/multiple files) into the opposite tab. For ...
0
votes
0answers
25 views

How can I create a RAM disk and install Firefox into it?

I've a Fedora 22 64-bits system running under a notebook with Intel Core i3 processor and 7.7GB of RAM. I only use about 2~3GB of RAM (with everything I need) and I want to speed up my system, so I've ...
0
votes
1answer
17 views

How to correct IdeaJ IDE on Win7 font setting bugs? Or just the fonts bug itself?

I try to use fixedsys for IDEA IDE which downloaded from http://www.fixedsysexcelsior.com/ Set the font size to 16 and then the A and B character just overlapped each other. other size will be fine ...
0
votes
1answer
4k 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
3k views

How do I add Sublime Text the Windows 8 “Default Programs” list?

I've tried using the following registry file to add Sublime Text 2 to the Default Programs list in Windows 8 Enterprise x64. It doesn't show up. All the paths are correct. This method has worked for ...
0
votes
0answers
44 views

Sublime text opens an xml file in HEX view

I have an xml file(rename to .xml) and I need to open this in Sublime text. But if I try to open and view it, it displays the data in Hexadecimal values. But I want this to be displayed in xml format. ...
45
votes
4answers
22k views

How can I filter a file for lines containing a string in Sublime Text 2?

I want to filter a file I'm editing in Sublime Text 2 for lines contain a certain string, if possible including regular expressions. Consider the following file: foo bar baz qux quuux baz When ...
8
votes
2answers
12k views

Setting up Sublime Text 2 Custom Keyboard Shortcuts

I'm a Vim user trying to move to Sublime Text 2, as it's faster than MacVim with a bunch of stuff open. I have may custom keyboard shortcuts in Vim, that I would like to transfer to ST2. How can I ...
0
votes
2answers
37 views

Why do my tabs in Sublime Text appear so far off in Github?

In my Sublime Text settings I have: "translate_tabs_to_spaces": true And in the editor my code looks beautiful like so (all tabs): However in GitHub the tabbing turns out terrible: If I use 4 ...
4
votes
2answers
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 ...
0
votes
0answers
14 views

How do I tell which sublime plugin(s) are resource hogs?

Just what the title says, the rest is detail :) Relatively often my ST3 instance hangs for a couple of seconds (or just now, which prompted this post, it hung indefinitely and I had to kill the ...
0
votes
0answers
21 views

Running “subl” command started crashing ITerm 2.1.1 with Oh-My-ZSH

Up until a few days ago, when I would type subl it would open Sublime Text 2. I would use the subl command frequently to open files and directories. Today, I tried to run subl from the command line ...
0
votes
1answer
12 views

Equivalent of JavaImport in Sublime Text 3?

I've got ST2 on my Windows machine which I've installed the JavaImport package which is a great tool for automatically writing the 'import' statements for various functions. Unfortunately it is not ...
0
votes
1answer
578 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 ...
5
votes
4answers
5k 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 ...
1
vote
1answer
23 views

OS X - Why does Firefox know my search query in other programs?

Environment: OS X Yosemite 10.10.3, Sublime Text 2.0.2, Pages 5.5.3, Firefox 38.0.5 Observation: When I find a word in Sublime Text 2 / Pages, and switch to Firefox, wanting to search the same word ...
2
votes
3answers
3k 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
15 views

Sublime: hide path in tabs for files with same name

I am aware that the same question was asked 2 years ago here: Removing file path from tab name Since there has been no answer given and sufficient time has passed, I'm asking this again. Also that ...
8
votes
1answer
2k 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
54 views

Sublime snippet in many places with different placeholders

In my scaffolding snippet I'd like to be able to remove two chunks of optional code, with a single button press. However my attempts were unsuccessful. <snippet> ...
0
votes
0answers
18 views

Add space before braces for functions and if/else's in Sublime text

id like to change Sublimes default behavior toleave an empy space before a brace in Javascript. I'm used to just typing func.. And sublime creates a function block for me. How can I make it so there ...
1
vote
1answer
11 views

Is it possible to set a project-specific font in Sublime (2)?

Is it possible to set a project-specific font in Sublime (2)? I just naively tried adding this to the config it give you under Project > Edit Project: { "font_face": "monospace" } (Which was ...
0
votes
1answer
77 views

Where does Sublime Text store unsaved files on Linux?

I have an unsaved file that I am trying to locate after a crash on Linux Mint. Where does sublime text store unsaved files on Linux OS?
2
votes
2answers
855 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
1answer
102 views

Change middle mouse button in Sublime Text

On Sublime Text running on Windows the Middle Mouse button acts as select range, on Linux its Shift+Right click. How can I set the middle mouse button to be select range on Linux? Specifically ...
12
votes
6answers
11k views

Sublime Text: Find-and-replace within selection

Does Sublime Text 2 allow the user to perform find-and-replace, limited to the current selection? I should think it must, only I've been unable after multiple searches to find how to carry it out.
1
vote
1answer
60 views

How to set up key bindings to change file type in Sublime Text 2

I would like to learn whether it's possible to set up a key binding in Sublime Text 2 to change a file type. To clarify further, I am not trying to alter a particular file type settings via a key ...
3
votes
1answer
30 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", ...
33
votes
2answers
21k views

Sublime Text 2: how to force all files to open in a single window?

I like using a single Sublime Text 2 window with multiple tabs. Currently, when I click on files in Finder that are openable via ST2, they open in separate ST2 windows. How do I force ST2 to open ...
0
votes
0answers
32 views

Open files in new Sublime window on Ubuntu

I currently switched from gedit to Sublime Text. One thing I liked with gedit, but what is missing in Sublime, is that new files are opened in a new window when the current window is in another ...
6
votes
3answers
5k views

Sublime Text 2 opens last opened files from last session

Whenever I open Sublime Text 2 on Fedora, it used to restore the last session. But now in Mac OS X Mountain Lion, and it's not opening the window from the last session. What setting do I need to ...
1
vote
0answers
31 views

Sidebar subfolder: Sort by alphabet by not by capitalisation

It's every time confuse me that in sublime-text at sidebar subfolders sort like: Folder5 Folder8 folder1 folder7 How to force sublime-text to ignore letters case and sort subfolders like this: ...
0
votes
1answer
30 views

Sublime Text - Find next - go back to beggining of file like Chrome does

In Google Chrome, when you search for a string and you keep pressing the "down arrow", if you are at the last string found, and you click again the down arrow, if goes back to the first string found ...
1
vote
1answer
73 views

How do you move the cursor(s) to the next occurence of a character in Sublime Text?

Let's say we have a file containing this: name, job, age Mark, Specialist, 24 Bob Guy, Manager, 43 Susan Third, Data Generation, 30 What I want to do is navigate around the fields. Move to the next ...
0
votes
0answers
29 views

Search only in non-folded, visible code

Is there any way to set Sublime Text 2's search feature to only search in code that is not folded? i.e. limit the scope of Find or Find/Change to only visible code, excluding folded code? For ...
0
votes
0answers
106 views

Configuring Emacs tabs to behave like Sublime Text?

I love Emacs, but the only thing that annoys me about it is I can't get the damn tabs right. This is my configuration file: (global-hl-line-mode 1) (setq indent-tabs-mode t) (setq-default ...