Text editor written by Jon Skinner
21
votes
1answer
3k 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 ...
14
votes
4answers
5k 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 ...
12
votes
3answers
2k views
Turn Off Parenthesis Matching in Sublime Text 2
I have questions about turn off parenthesis matching. Does anyone know how to turn off parenthesis matching?
example:
When I type a (, it will automatically add ), becomes ().
It's pretty nice for ...
11
votes
1answer
4k 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 ...
9
votes
1answer
1k views
Possible for Sublime Text 2 to save on loss of focus?
Textmate can save files when I switch focus to another application (that is, on blur).
Is it possible to set this up in Sublime Text 2?
9
votes
4answers
7k views
Autoindentation in Sublime 2 text editor
Is there an auto indentation option in Sublime 2?
In Visual Studio I can press Ctrl+K+D to indent everything so the code is structured nicely.
Is there a shortcut in Sublime 2 to do the same?
9
votes
1answer
3k views
Switch between columns' active tabs in Sublime Text 2
I know Sublime Text makes the following commands available:
ctrl+tab and ctrl+shift+tab - navigate through recent tabs
ctrl+pageup and ctrl+pagedown - navigate through adjacent tabs
I usually keep ...
8
votes
1answer
3k views
Search and replace with TAB character in Sublime Text 2
In Sublime Text 2, I want search and replace by the TAB character.
I tried replacing with \t char but it's not working.
How can I do it?
7
votes
5answers
6k views
Creating new bash command for Sublime Text 2
I'm trying to get Sublime Text 2's command line alias working.
The instructions make perfect sense: Run
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
So, in ...
7
votes
2answers
2k views
In Sublime text, how do you disable increase/decrease font size with ctrl and mouse wheel?
With Sublime Text, is it possible to disable increase/decrease font size when using control and mouse? I found the key bindings for ctrl and +/-:
{ "keys": ["ctrl++"], "command": ...
7
votes
1answer
1k views
Sublime Text, getting configuration under version control
After using vim for the better part of a year I've decided to give Sublime Text 2 a whirl.
Using vim my .vimrc of course grew quite substantial since I constantly found small ways to modify it, I ...
6
votes
1answer
4k views
How can I change the font in Sublime Text 2?
How would I go about changing the font in Sublime 2?
This is what my settings look like:
{
"color_scheme": "Packages/User/Monokai Soda.tmTheme",
"font_size": 12,
"theme": "Soda ...
5
votes
1answer
735 views
In Sublime Text 2, how can I indent out to a straight column with multiple cursors on a ragged edge?
Suppose I've got multiple cursors along several lines, like this:
foo|
barr|
foobar|
baz|
How can I automatically push the whitespace at the end of each line out to a flat edge, like this?:
foo ...
5
votes
1answer
104 views
Sublime Text: Disable Find in Selection
I sometimes have selected text when I open the find panel and Sublime Text defaults to "finding in selection". I never want this, any way I can disable it?
4
votes
2answers
1k views
Sublime Text 2 — open file using only keyboard
How do I open a file using only keyboard in Sublime Text 2?
Looking for equivalent of <Esc>:e /path/to/file from Vim.
4
votes
4answers
3k 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.
4
votes
2answers
726 views
Sublime Text 2 - insert breaks to match current wrapping?
Is there an automated way to insert line breaks at every point where the text is currently wrapping? After this operation, no lines should be wrapped, but it should look visually identical.
4
votes
1answer
125 views
SublimeText LaTeXTools: Build doesn't render a PDF
I'm using the LaTeXTools plugin for SublimeText 2, and when running the build, the build system compiles the TeX and invokes Evince, but a PDF file is never rendered and thus, Evince complains, "No ...
3
votes
2answers
80 views
vi/vim alternative to sublimetext's “Expand selection to scope”
Sublime text has a cool feature called "Expand selection to scope" SHIFT+CMD+SPACE which selects the everything within the scope.
It select everything in scope, works perfectly ( ) or [ ] or { } ...
3
votes
3answers
671 views
Sublime Text Editor command not found
I have installed Sublime on my Mac Lion Laptop, and followed the guide here
http://www.sublimetext.com/docs/2/osx_command_line.html
but as always it did not work. I dont have a ~/bin directory on my ...
3
votes
1answer
1k views
Sublime Text 2 / Windows: launch from command line?
How could one invoke Sublime Text from the command line, so that it starts in the current folder? (I'm using the MINGW32 that comes with Git on Windows)
3
votes
1answer
2k views
How to have Sublime Text 2 show git folders and files in the sidebar?
When adding a folder to a Sublime Text 2 project, it doesn't seem to show .git subfolders. It also seems these files cannot be opened by Ctrl-P.
I disabled the Git plugin but that didn't help.
3
votes
2answers
937 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
3
votes
2answers
122 views
Is there emacs plugins to do Sublime-like completion and goto anything?
In Sublime Text 2, I can enter prnfunc[tab] and then it completes to 'PrintFunction'. If I have a project, I can press Cmd+P and enter srcpy/hello.py and then it navigates to ...
3
votes
2answers
2k views
Sublime Text 2 IntelliSense - How to?
I would like to plug IntelliSense-like functionality into Sublime Text 2. Is there a package that does this?
3
votes
1answer
1k 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 ...
3
votes
1answer
160 views
Automatically insert a space between parentheses in Sublime Text 2
Is there some configuration or plugin I can use which would add spaces to the inside of parentheses when they're matched. Here's an example of what I'm trying to explain.
if (^) // ^ represents ...
3
votes
2answers
475 views
How to use Sublime Text as a Multimarkdown editor?
Is it possible to use Sublime Text 2 as a Multimarkdown editor with preview in browser as I do with Markdown? Thank you. Hugo
3
votes
1answer
387 views
Portable apps, Dropbox & default programs?
Currently I'm using Sublime Text 2 portable & I have put it inside dropbox to sync with my work PC. The problem is I can't set it as a default program to open HTML/CSS/PHP etc.. files, whenever I ...
3
votes
1answer
167 views
Installing sublime text plugins all at once
Is there a way to install all the sublime text 2 plugins that you would like to install all at once. In Notepad++, there is a plugin manager which lets you install all the plugins you want to install ...
3
votes
0answers
155 views
sublime text 2 open file from find results keyboard shortcut
In the Sublime Text 2 "Find in Files" results, a box is drawn around wherever your search term appears. Double clicking within that box opens the file and focuses your cursor on that line.
Is there ...
3
votes
0answers
91 views
Quick navigation between folders in the project on Sublime Text 2
For example, we have lots of folders in the project, and I want quickly navigate between them. How can I do that?
Maybe exist some command in console that opens (expand) htdocs/js/jquery folder and ...
2
votes
2answers
202 views
How to extract terms from an HTML document
I have a HTML document filled with terms that I need to put into a spreadsheet.
They follow this basic pattern:
<ul>
<li class="name"><a ...
2
votes
3answers
791 views
Sublime Text 2 Vintage: Leave insert mode on focus lost
I'm using Vintage mode (Vi bindings) on Sublime Text 2.
When switching back to ST2, I regularly get bitten by still being in insert mode, resulting in me entering "jjjjjjjjjjjjkkkkkkkkk".
Is there a ...
2
votes
2answers
288 views
Is there a way to “Execute and update '# => ' markers” in Sublime Text 2?
This is my most favourite feature from ruby bundle in TextMate. Unfortunately, I can't find how to do the same in ST2. It still inserts the marker when you press TAB after the # symbol, so, I hope, ...
2
votes
4answers
1k 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 ...
2
votes
2answers
405 views
How can I edit file permissions (e.g. make script files executable) from within Sublime Text 2?
When writing e.g. shell scripts, I want to change their permissions (primarily the executable permission) from within Sublime Text 2.
How can I accomplish that?
2
votes
1answer
115 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?
2
votes
1answer
67 views
Opposite of CTRL+D in Sublime Text 2
In Sublime Text 2, one may extend selection to include the next occurence of the current selection with CTRL+D.
I often find myself pressing this one too many times, necessitating I clear selection ...
2
votes
1answer
813 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 ...
2
votes
1answer
529 views
How can I switch between pdflatex and xelatex conversion in Sublime Text 2?
I often switch between compiling "classic" LaTeX and XeTeX documents.
Sublime Text 2 has a package called LaTeXTools that allows you to build LaTeX documents via a simple CmdB. Neat.
The build file ...
2
votes
2answers
313 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...
2
votes
1answer
337 views
Insert a range of numbers in Sublime Text 2
Is there a way to insert a range of numbers in Sublime Text 2? I have been unable to find a command or plugin, and I have to insert sequences like this semi-frequently. I'm looking for something akin ...
2
votes
1answer
595 views
How do I compile libcache?
I have been trying to use the much talked about SublimeClang plugin for Sublime Text 2, which gives me an error that libcache.so could not be loaded, and in Linux, I am supposed to compile it ...
2
votes
2answers
605 views
Editing files on an Ubuntu server from Sublime Text 2 running on Windows
What's the best way to use Sublime Text 2 running on Windows 7 to edit files that are located on an Ubuntu server?
Emacs has TRAMP which allows the remote editing of files via ssh. Something like ...
2
votes
1answer
258 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
235 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 ...
2
votes
1answer
107 views
Can you apply XSLT transforms using Sublime Text 2?
Scenario:
I have a project with a number of XML files and I would like to apply a XSLT transform on these and then use that output for other purposes.
There is a variety of tools to do this, but it ...
2
votes
1answer
127 views
How to uninstall packages from Sublime Text 2
I'm using a portable version of sublime text 2 on windows. And I'm trying to uninstall some packages which are on this directory:
D:\Downloads\sublime\Data\Packages
The problem is that it always ...
2
votes
1answer
536 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"], ...