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

learn more… | top users | synonyms

0
votes
0answers
146 views

copy relative path of file

I can copy full path of file: { "keys": ["super+i"], "command": "copy_file_path" } But don't know how to copy its relative path (relative to project folder) I even created .sublime-project { ...
0
votes
0answers
115 views

Vimperator: sublime text as an external editor in os x

I tried to set up Sublime Text 2 as an external editor for Vimperator on os x, but with no success. Here is what I have in my .vimperatorrc: set editor='bash -lc "subl -w"'
0
votes
0answers
342 views

-std=c++11 not working with Sublime Text 2 on Mac

So, I installed gcc 4.7 with ports. Manually compiling my file with g++ file.cpp -o file It spots an error. By appending the -std=c++11 it works like a charm. Now I edited my C++.sublime-build: { ...
0
votes
1answer
180 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
2answers
190 views

Replace or remove numbers next to text in Sublime Text 2?

I have list of keywords with numbers next to them in Sublime Text 2. Something like Sample tag 141870 Sample tag 36786 Sample tag 10651 Sample tag 266357 Sample tag 2251 Would there be any ...
0
votes
2answers
442 views

Mac Keybinding in Sublime Text 2

I am trying to set up a custom key binding in Sublime Text 2 (on Mac) so that I could use my keyboard "Home" and "End" keyboard keys to go to the beginning / end of line(s) as I am used to using those ...
1
vote
1answer
551 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 ...
4
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 ...
0
votes
0answers
207 views

Why isn't my custom GNOME launcher showing

I'm trying to get a launcher to show up on Arch linux with Gnome 3.8 but for some reason it doesn't show up on the menu. I have to strip down the version of the original sublime_text.desktop file ...
0
votes
1answer
100 views

How to make Vimperator work with Sublime Text 2?

I am using Firefox & add-in Vimperator and want to use Sublime to edit textareas. Currently when I focus textarea and press CTRL+i I get "Command not found: gvim". I already have Sublime ...
0
votes
1answer
544 views

Selected variable highlighting and word separators in Sublime Text

I removed the dollar sign from the list of word separators to be able to select PHP variables with double-clicks. Problem is when i select a variable: what i would expect is all other occurrences of ...
1
vote
2answers
181 views

Text editor that shows preview window of CSS classes, ID's and elements [closed]

I use a combination of Notepad++, Sublime and also Dreamweaver. I still use DW because of its really handy CSS Styles window, and for me its the quickest way of navigating through large CSS files. ...
0
votes
0answers
199 views

Set default build system with Sublime Text 2

I installed Sublime Text 2 on two machines: a not-so-old laptop running windows 8 and a much older laptop running windows xp. When I set a build system on the old laptop, it remembers my choice, and ...
2
votes
0answers
221 views

Where is the console ST2/GDB

I'm using sublime text 2. I got GDB to work but I don't see a console window anywhere. I see the GDB console but nothing that outputs text from my C++ program. How do I use GDB and see my the console ...
0
votes
1answer
101 views

How to set ST2 to prompt me every time whether I want to accept changes in the code made by some other program (git, for example)?

ST2 doesn't ask me if I want it to take new changes in my code. It just quietly reloads my source code. It happens for example when I do git stash or git stash pop. It just changes the code by force ...
0
votes
0answers
199 views

info: updating indexes…Sublime text 2 message stays there all the time?

OS: UBUNTU 12.04 info: updating indexes..The first time this can take a while. Do not despair! message is always displaying int he bottom bar of sublime text 2. How to fix this?
0
votes
1answer
77 views

sublime text 2 command create link but the command is empty

I want to create the link about sublime text2 which is placed in applications. If I paste the /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl in bash, the sublime text 2 will open. ...
1
vote
1answer
185 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 ...
1
vote
3answers
2k 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
1answer
963 views

Selective word highlight in SublimeText

Is there any way that i can select some words to be highlighted and their instances as well. This feature i especially used when viewing log files in Notepad++
9
votes
1answer
3k 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
133 views

Sublime Text 2: cannot type “>” character via keyboard

I don't know why or what I've done so that the greater-than character ">" cannot be typed in Sublime 2 (Windows 7 professional). I can type ">" in all other software. Any one care to shed a light?
0
votes
1answer
157 views

Launch sublime text without waiting in the terminal

I have installed Sublime Text 2. I downloaded it from the homepage, put it in /opt/, created a symbolic link in /usr/bin/ called subl. When called it correctly opens Sublime Text 2, but it also causes ...
0
votes
0answers
65 views

How can I make Sublime Text 2 recognize the pipe as a bracket

The reason I want this is so I can use the move_to brackets command in a block argument list. Take: hash.each_pair do |key, value| puts "K:#{key} V:#{value}" end I want to be able to have ST2 ...
0
votes
1answer
826 views

Sublime text 2 build system

I want to build a file using Sublime Text 2, and then do a simple copy. I managed to do the first thing using a build system, and I think it has to be possible to do the copy with the build system ...
1
vote
2answers
122 views

Regex to match only if beginning of line isn't something?

I have some lines that I'd like to match and some lines I'd to exclude from matching in a file. I'd like to not match remote access</a> (main card) and would like to match anything ...
0
votes
2answers
429 views

Find symbolic link created for Sublime text 2 to replace with Sublime Text 3

I don't remember where I have setup this Sublime text 2 command line symbolic link and now I just upgraded to Sublime Text 3 and I want to replace that symbolic link instead, but I can't find where I ...
2
votes
2answers
3k views

Sublime Text 2 open last opened files from last seesion. Mac OS X

I'm a big fan of Sublime Text 2. Previously I used to work on Fedora. There whenever I closed sublime text 2 (with a lot of files opened) and opened after a system restart, or just closing sublime ...
0
votes
1answer
51 views

Sublime intellisense selects padding-bottom by default and not padding

Much as I love Sublime, something that annoys me is that I cannot figure out how to make it select "padding" or "margin" rather than "padding-bottom" or "margin-bottom" by default. Is there a way to ...
4
votes
2answers
3k 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 ...
1
vote
1answer
112 views

Change the keybinding to exit (alt+f4)

I'm currently using linux and pretty much every program with a GUI exits with ctrl+q. Is there a way to change the default alt+f4 to ctrl+q instead?
4
votes
1answer
509 views

How to get a “zoomed out” code view in Visual Studio?

Sublime Text and Komodo IDE both have a very neat feature where you have a preview of the entire file you are working on in a "zoomed out" view that you can scrub up and down to move around your code. ...
2
votes
0answers
2k views

Sublime Text - keyboard shortcut binding not functioning

Following the instructions here, I've set up a new installation of SublimeText for use with R. I have no other SublimeText plug-ins installed. The keyboard shortcuts that are setup using the ...
0
votes
1answer
132 views

How to export the font configuration of Xcode to Sublime?

I like the font configuration of my Xcode. So, how to export the font configuration of Xcode to Sublime?
0
votes
1answer
226 views

How to restrict subfolders of a folder that are showed in sidebar in Sublime Text 2/3?

I am able to select folders I would like to work on using different paths inside of the folders array in Projects settings. But what if I need only few folders from the folder templates? And I don't ...
0
votes
1answer
1k views

How to show .gitignore file in the sidebar in Sublime Text 2/3

I want to see my project .gitignore file. It's always hidden. Why it's hidden and how to fix this?
1
vote
1answer
319 views

.class specific search and replace

I'm trying to remove entire tag with specific class: Code: <div> Blah blah <div class='myClass'> <div>some other div</div> </div> </div> <div> Blah ...
0
votes
1answer
42 views

gotofile plugin not working on mac

I installed go to file plugin for sublme text2. When I click alt-d it prints ∂ in editor and navigating to file not working. I tried to change key bindings for this plugin but in ...
8
votes
1answer
4k views

Set current language without saving file in Sublime Text

I have recently started using Sublime Text 2 after getting tired with Notepad++. Now, if I wanted to set what language I am currently programming in in Notepad++, I would go to the Language menu, and ...
0
votes
0answers
279 views

Symbolic link to host-shared folder from vmPlayer guest results in permissions errors

I have my Sublime packages located at C:/Storage/Dropbox/settings/sublime-text-2/ on my Windows 7 host. In my Ubuntu 13.04 guest, I have mounted the Storage folder at /mnt/hgfs/. Ergo, the location ...
1
vote
1answer
311 views

Detect key binding collisions in sublime text

In sublime text is there any way in to detect when a particular key binding is already assigned to some command and is then overwritten? I just want to be able to detect such scenarios.
0
votes
0answers
87 views

Using Sublime Text CLI (subl) “command” argument

I'd like to use Sublime Text in a script to save a text file with UTF-8 encoding, subl --help shows : --command : Run the given command I found a list of commands and tried typing subl ...
-1
votes
1answer
278 views

How can I fix rendering problems with Sublime Text 2.02 on Google Hangouts?

I am attempting to pair with someone using Google Hangouts and Sublime Text. He is using OS X Snow Leopard, and SublimeText 2.02. On his screen, the fonts look normal; on mine, they are rendered as an ...
1
vote
1answer
313 views

How to set JS-Syntax for .js.php-Extension in Sublime Text 2?

I have several js-Files (and css-Files), which need php-Commands. So I changed the extension to .js.php or .css.php But when I open the file in Sublime Text 2, I always have to change the syntax ...
2
votes
1answer
517 views

Same file in differents tabs

in sublime with ALT+SHIFT+2, I get two columns for files. in vim, with split, I can see the same file in differents parts of code. in Sublime,for comparate differents parts of code, How I can see ...
0
votes
0answers
743 views

'super' key not working as expecting in Sublime Text 2 or 3 on Windows 7

The Sublime key binding docs suggest that the super (Windows key) is usable in user defined key bindings. I'm aiming to create the following style of mapping so I have consistency between my OSX and ...
0
votes
1answer
115 views

How can I open a set of files in sublime based on their contents

I am trying to find all the files that contain a search term: grep -lir "Search" . and pipe that into sublime: grep -lir "Search" . | subl but all this does is open a single file in sublime ...
0
votes
0answers
28 views

Sublime Text 2 - Read a file located on a different server (http://host.com/my-text-file.txt)

As the title says, is it possible to open up a file as I can do in chrome (http://host.com/my-text-file.txt). Bonus points if you can make it auto refresh and scroll to the selected line.
0
votes
1answer
145 views

What command, if any, can be a good alternative to sublime text's find in folder?

Is there a way to find a string or phrase recursively in all files in a folder from the command line, such that the output would be similar to Sublime Text 2's find behavior? Like, with the path of ...
1
vote
1answer
669 views

Sublime Text manually specify g++ location

Long story short, I'm using sublime to write some small C++ programs in my spare time. I'm currently on a Windows 7 box and I do not have administrative rights to adjust the Path Environment Variable ...