Questions tagged [sublime-text]
Sublime Text is a cross-platform GUI text editor for Windows, OS X, and Linux. Use this tag for version-agnostic questions.
211
questions
73
votes
4
answers
64k
views
How can I make Sublime Text reload the file being edited?
How can I make Sublime Text (3) re-load the file currently being edited, to take into account changes having been made externally?
56
votes
1
answer
11k
views
How to disable overlapping tabs or scrolling tabs in Sublime Text 3
Sublime Text 3 has a default feature which makes tabs overlap each other instead of the old behavior where the horizontal length of the tab would shrink. How do you disable this?
36
votes
3
answers
17k
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 |...
35
votes
6
answers
44k
views
How to open file using only keyboard in Sublime Text?
How do I open a file using only keyboard in Sublime Text 2/3?
Looking for equivalent of <Esc>:e /path/to/file from Vim.
34
votes
5
answers
111k
views
How to uninstall/remove Package Control from Sublime Text 3?
Searching for uninstall package control on Google, only results showing how to install packages with Package Control, or remove them, but not removing Package Control itself.
How can I remove Package ...
30
votes
2
answers
9k
views
Sublime Text, move tabs with keyboard
In Sublime Text 3, is there a way to reorganize tabs using keyboard only?
I know you can switch a tab from a pane to another pane using for example ctrl+shift+2 to move a tab from pane X to pane 2 ...
30
votes
1
answer
13k
views
Multiple cursor selection on a pattern in Visual Studio Code
I am looking for a similar way that I work in Sublime Text:
Find All for a specific regular expression. Then it has multiple-selected the texts I need.
A simple find and replace does not fulfil my ...
22
votes
1
answer
7k
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 ...
18
votes
1
answer
13k
views
Search all within opened tabs with Sublime Text 2
Having Sublime Text 2 Text Editor:
Is it possible to search within all the tabs that are open? How?
15
votes
2
answers
8k
views
How do I see what the current "scope" is in SublimeText?
I'm trying to define some snippets for editing Markdown, but I can't get them to trigger. I have tried using source.markdown, text.markdown and markdown as the scope, but none of them work. If I ...
15
votes
2
answers
12k
views
Sublime Text 3 - Quick Add/Find Match behavior
Suppose I'm working with a file In Sublime Text 3 that contains multiple occurrences of a single character variable, c, which I want to rename to another name.
When I select one instance of that ...
13
votes
1
answer
5k
views
How to find next occurrence and go back to the beginning of file in Sublime Text
In Google Chrome, when I search for a string and press the "down arrow", if I am at the last string found and click the down arrow again, if goes back to the first string found in the text.
The ...
11
votes
3
answers
7k
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 ...
11
votes
3
answers
4k
views
Reopen SublimeText as Administrator
Is there a SublimeText plugin that reopens the current file as Administrator?
Notepad++ has a feature where, if you open a file and don't have the permissions to edit it, but try and save, it will ...
10
votes
3
answers
10k
views
Sublime: Save set of tabs to open
I have several files that I edit frequently, and I need all of them open at the same time. I am wondering if there is a way in sublime to save a set of files to be open...sort of like how in chrome or ...
9
votes
1
answer
5k
views
How to change syntax for a specific folder in Sublime Text 3
I write JS projects in ES5 and ES6. I installed Babel-Sublime for highlighting Babel supported code. Now, I open a .js file written in ES6, goto "View -> syntax -> Open all with current extension as : ...
9
votes
4
answers
4k
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 ...
9
votes
1
answer
538
views
Sublime Text: escape multiple selections to last selection region instead of first
In Sublime Text (using Sublime Text 3), you can get out of a multiple selection / multiple caret mode by pressing the Esc key. When you do this, only the first selection / caret will remain.
Is ...
8
votes
3
answers
2k
views
How to shorten list of syntax options in Sublime Text
Using Sublime Text 3, is there a way to shorten the list of syntax options that are presented when changing the syntax? There are about 50 language options, and I only use about 5, so I'd like to only ...
8
votes
2
answers
8k
views
Hide the file path on the title bar in Sublime Text
I've been using Sublime Text on Linux. I now switched to Windows, and the file path on the title bar is different from Linux: Sublime Text always shows the complete path on the tile bar.
Can I hide ...
8
votes
4
answers
2k
views
Sublime Text 3 - Detect syntax based on file header
How would I get Sublime Text 3 to recognize file type (i.e. set syntax and build system) based on a files header?
For example: If the first line of a file was <!DOCTYPE html>, it would be ...
7
votes
5
answers
10k
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 ...
7
votes
1
answer
3k
views
How do I decrease the minimum font size in Sublime Text 3
If I use the Ctrl+ and Ctrl- key combinations I can lower my font size down to 8pt, even though if I edit my user preferences I can set this to whatever I like. Problem is once I do that, any use of ...
7
votes
2
answers
6k
views
Use Sublime Text find to highlight a regex group in search pattern
Is there a way to make Sublime Text highlight (match) only part of a regex search pattern?
For example, I want to exclusively highlight Text when searching for Some(Text).
7
votes
3
answers
4k
views
Sublime Text 3 remove default keyboard shortcut
I find no way to unset or remove default keyboard shortcuts in Sublime Text 3. The default settings are not editable anymore, so I have this in there:
{ "keys": ["f2"], "command": "next_bookmark" },
...
7
votes
0
answers
1k
views
Sublime Text 3: Open file in read-only mode directly upon opening
I'm trying to find a way to force ST 3 into opening a file directly into read-only mode. I'm aware of plugins like toggle-readonly, but that requires user interaction and can be easily forgotten.
...
6
votes
2
answers
1k
views
How to stop Alt+Shift+1 closing the current app?
Whenever I press Alt+Shift+1, it seems to close the currently focused application window.
I don't want this behavior, especially since they are used for application-level hotkeys (Sublime Text 2/3).
...
6
votes
1
answer
21k
views
Benefit to purchasing a license for sublime text? [closed]
I'm currently using Sublime Text 3 as my primary coding application. I've noticed that after (say, 25, I really have no idea) files saves there is a notification about purchasing a license for Sublime ...
6
votes
4
answers
4k
views
Sublime Text - pressing enter in search box creates a new line instead of searching
When I hit ctrl+f, then paste the searched phrase by ctrl+v and hit enter I expect the editor to Find the phrase, not to create another line in search box. Which is very irittating, since I have to ...
6
votes
3
answers
8k
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 ...
6
votes
1
answer
11k
views
What do "Goto Definition" and "Goto Reference" do in Sublime Text
What is the purpose of these commands?:
6
votes
4
answers
3k
views
vim command palette, similar to sublime text
In sublime text, we can press ⌘⇧P to bring up the command palette. Are there any similar tools for vim?
I’ve been trying vim-ctrlp-cmdpalette, and although it works relatively well (there are some ...
6
votes
1
answer
3k
views
Sublime Text 3: Are disabled (ignored) packages loaded into memory?
Sublime Text 3 on my OS X 10.9 suffers from significant typing lag.
Before I start start removing installed packages, I would like to ask if disabling a package (adding it to the ignored_packages ...
5
votes
2
answers
22k
views
How to stop current file upload in submit sftp?
I was uploading files through sublime sftp. But i don't find any source through which we can stop the current file upload in sublime sftp except closing the whole program. So if any one knows about ...
5
votes
2
answers
4k
views
Does notepad++ have the quick scroll pane that Sublime Text have? [duplicate]
Sublime Text (Download) has the following feature that I use it all the time:
I would like to know if notepad++ (Download) have this feature. I call this feature 'Quick Scroll Pane' as I do not know ...
5
votes
3
answers
11k
views
Unhide build output in Sublime Text
After starting a build in Sublime Text (Ctrl/Cmd B), a pane with the output appears.
The output pane can be hidden by ESC.
Buth how do I unhide the output pane again?
5
votes
2
answers
2k
views
Code line marker in sublime text 2
I personally like this feature in notepad++
Do you know how to do this in Sublime Text 2?
5
votes
1
answer
854
views
Customize "wrap" characters in Sublime Text
In Sublime Text, highlighting any text and pressing any of the following symbols:
'
"
(
{
[
will cause the entire highlighted section(s) to be surrounded by the key you pressed (or its matching ...
5
votes
1
answer
1k
views
How to make Sublime Text 3 treat certain extension as html?
I have a node.js development environment in which templates have .hbs extension. I'm wondering how to make them as html for Sublime Text 3, so that I can benefit from markup coloring and tidying etc?
5
votes
1
answer
3k
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 ...
5
votes
2
answers
3k
views
Change default program without changing file icon [duplicate]
How can I change the default program for a file without changing its icon?
For example, I'd like some file extensions (.css, .js, .cshtml, etc.) to be opened with Sublime Text, but I want to keep the ...
5
votes
1
answer
11k
views
Sublime Text 3: How to enable autocomplete with Tab and Enter / Return
When I first select a choice with the Tab key from the list of choices, the autocomplete choice is not committed, when I come back and try again, it works.
Why does it work the second time and fail ...
5
votes
2
answers
6k
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 ...
5
votes
1
answer
1k
views
ST3: Annoying file changed reload popups
I use sublime text for my editors. I love it for everything else but 1 thing which is so annoying according to me. Whenever I change my branch, it brings up a pop up saying that file has changed and ...
4
votes
5
answers
3k
views
Multiple Sublime instances using different windows credentials?
As a security minded professional I do my day-to-day work on my computer as an unprivileged account. I will start individual programs, shells or so on with my privileged Domain Administrator account.
...
4
votes
1
answer
456
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?
4
votes
1
answer
766
views
View tabs during ctrl-tab in Sublime Text?
In Windows, when you press Alt and Tab together, then repeatedly press Tab while holding down on the Alt, you see a list of all open windows and you can toggle between them.
In Notepad++ and other ...
4
votes
3
answers
503
views
Notepad++/other editors: How to view same file in multiple columns with auto scrolling?
Is there any editor that allows me to have two columns, where the second column picks up after the last line of the first column? I don't mean cloning like in Notepad++ where I have two open copies of ...
4
votes
2
answers
2k
views
Editing files with Sublime Text 3 slow over SSHFS
This post was originally posted on StackOverflow, where users recommended reposting here.
I'm currently mounting remote server directories as local folders under OS X 10.10.3 and OSXFUSE + SSHFS. ...
4
votes
0
answers
239
views
Sublime Text 3: Prevent having same file in multiple windows
I use Sublime Text to edit files simultaneously on two monitors, by using two separate Sublime windows (by tearing away a tab). But if I have file A open in Sublime, then I tear away that tab, I can ...