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

learn more… | top users | synonyms

0
votes
2answers
2k 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 ...
3
votes
3answers
855 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 ...
16
votes
4answers
33k 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. ...
4
votes
3answers
4k 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 ...
22
votes
4answers
36k 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> <h1></h1&...
0
votes
1answer
18 views

Sublime text: Swap line and indent

I recently gave atom a try. Despite being too slow, there was one thing I liked: the way auto indent worked, basically everywhere. I found here how to make Paste + Indent the default in sublime text. ...
4
votes
1answer
92 views

Force Sublime Text to open on current virtual desktop in Windows 10

I often have several virtual desktops open in Windows 10 with various programs in each one. I often want to open in my current virtual desktop a new instance of a program that already has a window ...
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 ...
2
votes
4answers
657 views

How can i open the same project in several windows?

I have a big project with several subproject and i would need a window for each sub project. I do : bash> sublime_text --project $path_to_project & bash> sublime_text --project $...
2
votes
3answers
861 views

Key binding for save all

I want to key bind save all to ctrl+alt+S. I know this has been asked and answered on the sublimelime text forum but it's currently down for me. Does anyone remember how to do it?
5
votes
2answers
3k views

Increase the font size on Sublime Text 2 status bar?

Is it possible to increase the font size on the Sublime Text status bar? I did some searching and didn't find much at all on the subject. I sometimes miss important information displayed in the ...
0
votes
1answer
7k 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 ...
2
votes
3answers
646 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 } }, { ...
4
votes
2answers
2k 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
41 views

Sublime Text Editor 3 doesn't show traceback when running Python code

Yesterday I installed ST3 and installed some plugins, but I noticed that if Python has a syntax error then it shows an error. But when a statement has a non-syntax error, then it shows nothing. Like ...
1
vote
2answers
2k views

How to generate ordered and unordered list from couple lines in Sublime Text

How to efficiently generate ordered and unordered list from couple of lines? Let's say: list item 1 list item 2 list item 3 into <ul> <li>list item 1</li> <li>list ...
0
votes
0answers
15 views

sublime text 3 vim cursor in command mode same as sublime text 2

In sublime text 2 in preferences, even though it is not mentioned, you can set caret_style to wide and when in command mode it will only underline the character that you are currently on. In sublime ...
1
vote
1answer
31 views

Select all mispelled words in Sublime Text at once

Is there a way to, when activating the spellchecking with F6 then noticing that bunch of red-underlined typos, to select all misspelled words? Obviously we can't do it with a simple Ctrl+D. The idea ...
0
votes
2answers
47 views

Safe redo (Ctrl-Y)

In ST (Sublime Text for short) the redo action works very strange and inconvenient way, from my point of view. First test. Type some text, for example Foo and then press Ctrl-Y one or several ...
2
votes
2answers
589 views

Delete lines from cursor to end of file

with sublime text, I can delete from cursor to end of line with super+k-k how I can delete from cursor to the end of file ?
-1
votes
2answers
33 views

What is this texteditor's counterpart in Windows?

I am learning CSS and want to know what the following texteditor is: Is there a counterpart for Windows? There seems to be a Sublime plugin, when you type: div.classname then perhaps press ...
0
votes
1answer
30 views

How to find wild card value and append to it

I have part of the hundreds of lines similar to : [vc_single_image image="55"] How can I change the lines so they all get appended img_size="full", resulting in [vc_single_image image="55" ...
7
votes
3answers
12k views

Better syntax highlighting for Java in Vim?

I've found Vim to have fantastic syntax highlighting with my preferred color schemes for Ruby and Python, but whenever I need to write Java code, it's like I haven't even turned on highlighting in the ...
0
votes
3answers
701 views

How can I get sublime text to run from the command line?

I am trying to get sublime text to run from the command line using this tutorial http://www.sublimetext.com/docs/2/osx_command_line.html It says to run this command: ln -s "/Applications/Sublime ...
2
votes
1answer
56 views

How To find a word and replace with changing pattern

I have a text like the following: case "UID": if (!Convert.IsDBNull(objDataReader["XYZ"])) { objQualitativeAssessmentBiz.XYZ = objDataReader["XYZ"].ToString(); } break; case "GeneratedChaseId": ...
0
votes
1answer
28 views

How to remove rectangular box around text from subline text editor

I want to remove the shitty boxes around text show in: I can't remember which package I had installed for this. Can anybody tell me how ?
11
votes
1answer
2k 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": ["...
0
votes
1answer
67 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 ...
3
votes
1answer
115 views

Brackets Text Editor - “Go to anything” feature like Sublime Text

I love Sublime Text and I'm playing with Brackets editor for a change. One of the features I like most in ST is the "Go to anything" (CTRL+P). Is there something like that in Brackets?
10
votes
1answer
4k 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 (//)?
1
vote
1answer
2k views

error: XDG_RUNTIME_DIR not set in the environment. Gtk-WARNING **: cannot open display:

I used to open text files with sublime, and for Read-only files, I used to do : sudo sublime. But now just suddenly the sudo sublime command gives the following error : (sublime:3931): Gtk-WARNING **:...
0
votes
1answer
100 views

Copy file as raw binary text

I do need to copy the jce_policy-8.zip from my Mac to a Citrix Desktop on Demand. The customer blocked every fileshare and Download. So I have tried to copy the .zip as raw text. Source I open the ...
2
votes
2answers
273 views

How to remove extra invisible character in a text editor

I have two "identical" 5-character strings in my text editors (Sublime Text2 | Notepad++). The first string was copied from Gmail and the second one just typed by hand. When I select the first ...
0
votes
0answers
23 views

Sublime text 3 - show number of bytes selected

Sublime text 3 shows number of characters selected and number of lines.. I want to add a functionality for it to also show the number of bytes (or kb) on selected text.. The number is pretty ...
0
votes
2answers
431 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?
2
votes
2answers
1k 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 ...
0
votes
0answers
13 views

Running SPARQL queries via Atom

Using Sublime SPARQL Runner is possible to directly run SPARQL queries. I'm looking to fin a similar solution for Atom. I see that there is some interest in this as the language-sparql provides some ...
2
votes
1answer
53 views

How to make Sublime Text stop asking me to reload every file

I had several thousand files open in a Sublime Text project and those files were modified outside of Sublime so it started prompting me whether or not I wanted to reload the file or cancel. But if I ...
4
votes
2answers
2k 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
0answers
102 views

Combing r-exec and terminal-panel functionalities in Atom

I would like to combine the functionality of r-exec in Atom with the Terminal-Panel package. In particular, I'm interested in achieving similar flexibility as illustrated in this SO answer with ...
0
votes
1answer
21 views

Changing sublime key bindings to move to the beginning and end of line

I'm currently looking at this useful answer published on SO about modifying Sublime Text key bindings. I would like to check whether it's possible to assign those arrow keys: to move to the ...
12
votes
4answers
8k 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...
0
votes
1answer
29 views

Sublime Text 3 - Replace character in particular lines

I have a file with content like this (its a movie subtitle file) 00:21:39.168 --> 00:21:45.585 There will be 23 days, giving 00:21:48.960 --> 00:21:54.126 We'll talk, Oscar. Come back soon. 00:...
2
votes
1answer
179 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 ...
5
votes
3answers
2k views

In Sublime Text 2, how do I make a key mapping to move the cursor up or down multiple lines?

I'm trying the following key mapping, but it only moves the cursor up one line at a time. I'd like it to move 10 lines at a time. It seems the "amount" paramater is ignored. { "keys": ["alt+down"], "...
0
votes
1answer
68 views

How do I revert to the default cursor in sublime text?

Since some point today, my Sublime Text is doing this: That light grey block is my cursor, focussed on a tab character. It's become a block cursor instead of a vertical line. How do I revert to the ...
2
votes
2answers
93 views

Sublime text Find Replace any Character

Is there a way to find and replace using a special character that would allow any char to be in it's place? What I mean by this is say I have the following text: setI0100(mds3a1.getI0100().toString()...
2
votes
1answer
84 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?
0
votes
1answer
46 views

How to replace with empty line in Caret?

I add unsuccessfully "\n" in the search. No regex seems to work. Caret is a clone of Sublime editor in Chromebook. How can replace with empty line in Caret's search of Chromebook?
0
votes
1answer
47 views

Trouble creating Custom Completions for Sublime Text 3

UPDATED I'm working on Salesforce development using the MavensMate plugin for Sublime Text 3. I'm wanting to create a custom completions file that will contain some common HTML tag class names that I ...