Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
15 views

Sublime Text 3 Create own sublime-build for pypy and profiling

pypy.sublime-build contains { "selector": "source.py", "shell": true, "cmd": ["pypy", "<", "$file"] } So, I want to call not just "pypy". I would like to call "pypy -m cProfile ...
2
votes
1answer
400 views

Can't change Windows 10 default file type association [duplicate]

After installing Sublime Text on Windows 10, I can not change the default application for files with the .txt extension anymore. Right-clicking on Context Menu > Open With… > Choose Default ...
1
vote
1answer
595 views

Where to find the “bulma snippets” for Sublime Text 3?

In the "Laravel 5.7 From Scratch" video tutorial one sometimes can see usage of something like macros for bulma in Sublime Text editor. An example would be the lesson "Create New Project Tasks", ...
0
votes
1answer
24 views

Sublime Text 3 doesn't show separate files in tabs, how to switch between files?

If I open two files in Sublime Text 3 on macOS, the tab bar at the top only shows one item, i.e. just the last file I opened. There is no visual feedback that the first file is also still open, and I ...
1
vote
0answers
61 views

Open Sublime text 3 in read-only mode directly when opening it

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. ...
1
vote
0answers
32 views

Sublime Text 3 marks things without a reason

To me it is unclear why Sublime Text 3 marks things without having selected some other text. It bothers me because I cannot focus clearly because of this. Does somebody know how to 'reset' Sublime ...
1
vote
1answer
27 views

Key binding for character insertion won't work in sublime text 3

I am trying to make my sublime text 3 instert a "<" character if I press alt + z, and ">" if I insert alt + x since my keyboard has no <> keys. I managed to make this work properly in Sublime ...
0
votes
0answers
20 views

Sublime - Custom command in command palette with Variables

I'm working on a custom command in Sublime. In Packages/User/Default.sublime-commands I have: [ { "caption": "My Super Command", "command": "exec", "args": {"shell_cmd": "...
0
votes
1answer
145 views

Find and replace only specific characters in Sublime Text

An example of what I want to do.. I have tons of: name : 'SomethingXX', I want to become: name: 'Something Else', Where Something is different for every entry, so I can find all using name : '((.*?...
0
votes
0answers
540 views

Unable to completely uninstall/remove Sublime text from Ubuntu 16.04

I had installed Sublime_text-3 in my system (Ubuntu 16.04). I want to uninstall it and i followed the link http://www.ubuntoid.com/install-sublime-text-2-3-ubuntu-16-04/ and i typed in the terminal ...
0
votes
0answers
25 views

Bind Insert key in Numpad without affecting normal Insert key

Is there a way to bind 0/Insert button in Numpad without affecting normal Insert Key? Here is what I have currently: [ { "keys": ["ctrl+0"], "command": "reset_font_size" }, { "keys": ["...
1
vote
1answer
996 views

What do “Goto Definition” and “Goto Reference” do in Sublime Text

What is the purpose of these commands?:
0
votes
1answer
296 views

Babel syntax highlighting for React not working?

I've installed the Babel package in Sublime Text 3 (I see it in Preferences -> Package Settings), but the syntax highlighting for a sample App.js still looks weird: For example, I would expect the ...
1
vote
1answer
768 views

How to shift a block by exactly one space the right/left in Sublime

I know one can move a block of text using ctrl+ ] or cmd + ]/[. Is there any way so that I can move a block by exactly one space to left or right. Thank You
0
votes
1answer
229 views

How to recursively replace a string in Sublime Text?

The title tells it all: I am wondering how can I replace a string in all files in sub-folders of a folder.
0
votes
0answers
22 views

Can I make Sublime Text autocomplete treat accented characters as the same as unaccented ones? E.g. A=Á, E=É

Meaning that if I have a file foo fóó // and I start to type: fo| +-------------+ |foo | |fóó | +-------------+ // ^^^ Then I'd like the autocomplete box show both `foo` and ...
2
votes
1answer
146 views

How to insert a formfeed into a text file, using Sublime Text 3?

It a simple problem. I need to insert formfeed characters into a text file: ASCII 12/0xC CONTROL-L U+000C I've not been able to figure out how to do this in Sublime text 3.
1
vote
1answer
189 views

Sublime text: error while loading shared libraries

When I try to run sublime text 3 (installed with the official instructions) in a new debian sid chroot, it does not start, outputting: /opt/sublime_text/sublime_text: error while loading shared ...
0
votes
0answers
28 views

subl command does not invoke the editor unless cmd.exe was ran as administrator

On my Windows 10 system, when I open a regular terminal (cmd.exe), I cannot edit files using the subl command: subl myfile.txt The command does not do anything, I did not get any error message. ...
0
votes
1answer
109 views

SublimeText - add Comments *about* code?

I was wondering if there's a way, native or via plug-in, that allows me to add comments to my code. I do not mean a code comment, using python as an example: def some_function(): my_variable = ...
2
votes
0answers
64 views

How to make Sublime Text to wrap line between any two letters?

Sublime Text 3 can only wrap between words (which separated by space or other punctuations) by its default setting. I'd like something like "word-break: break-all;" in css, or say let lines may break ...
3
votes
1answer
2k 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 ...
1
vote
1answer
324 views

Is it possible to use the hash (#, pound) key in a key binding in Sublime Text 3?

On UK keyboards, the hash symbol (#, a.k.a pound elsewhere) has its own key (with tilde above it). Presumably because it is not a standard key on US keyboards, it isn't listed in the list of named ...
0
votes
1answer
79 views

How to make each cursor a tab stop?

When editing code with Sublime Text, I often use multiple cursors to put the same text in multiple locations. Usually each location will start with some common prefix, and end with something unique to ...
1
vote
2answers
2k views

Sublime Text terminal control

I'm using Sublime Text 3 for editing my code on a remote server. I use sshfs to mount a directory from the server on my computer and make my changes using my local Sublime Text. Then I usually build ...
1
vote
2answers
729 views

Sublime text 3 change focus to next split view pane

How can I easily switch the active pane to the next pane in my SplitView ? Suppose I am working with a vertical split view of 2 screens, and I need to rapidly change the focus from view n°1 to view n°...
0
votes
1answer
573 views

Run ConEmu + Far in current folder

1. Briefly I don't find, how I can run ConEmu + Far in current folder. 2. Detail I don't set ConEmu + Far in ConEmu Open Sublime Text package. I don't set, how ConEmu + Far open in ConEmu Here. 3. ...
1
vote
1answer
649 views

How can I change default path to Sublime Text preferences?

Here is the case: I installed Sublime Text 3 on my Windows 8.1 . When I try to save my user preferences and/or keybindings, it throws following error: Unable to save C:\Users\w\AppData\Roaming\...
1
vote
0answers
189 views

Using Sublime Text as default e-mail editor in Thunderbird

1. Briefly I want to write my e-mail messages use external editor Sublime Text 3. But I don't know, how I can do it. 2. Example of expected behavior For example, I get email in Thunderbird. I click ...
0
votes
1answer
103 views

Sublime Text: how do I edit the multiple line caret insertion key binding?

I can never remember what Sublime Text calls its caret/cursor/line insertion above/below command in the key bindings. On some platforms it is Ctrl + Alt + Up (or Down) and a caret (for typing) ...
1
vote
0answers
31 views

Sublime Text 3 keyboard shortcut to jump from Find Bar to text

I would like to jump from the Find Bar back to the text being edited, while keeping the Find Bar open. Currently I do it with a mouse click. Is there a keyboard shortcut for this, or how do I create ...
1
vote
1answer
1k views

sublime text 3 keybinding save with encode + utf8

As the title says. I want to make keyboard shortcut for save with encoding + UTF-8 . Anyone has idea how to do that in key bindings file of Submlime text 3?
1
vote
0answers
59 views

Is it possible to create a word preprocessor with a plugin?

I am wondering whether it is possible to create a plugin that would act as a kind of a word-preprocessor. Here is an example to make things more clear: Let's say I want to be able to highlight words ...
2
votes
0answers
202 views

Custom-defined type highlighting in Sublime Text

I am looking for a configuration/combination of plugins + clang (or any other parser) that can allow sublime text to highlight all custom defined types just like it highlights native types such as int,...
3
votes
2answers
652 views

Open empty Sublime Text window when launching from start menu

I have several Sublime Text windows open. I want to open a new empty ST window (to be more precise: with one, empty tab) by clicking on ST in the start menu. But when I click on it, an already-open ST ...
0
votes
0answers
260 views

Typescript syntax highlighting of strings in Solarized light

I just installed the Typescript plugin. (I tried installing through PackageControl and manually). In Solarized light, the strings (in 'single' or "double" quotes) are the same formatting as default ...
2
votes
1answer
361 views

How can I make the list of Open Files sticky in Sublime Text 3?

Open Files is pretty handy, but scrolls out of view if I navigate to other files in the sidebar. Is there a way to make it stick so that as I scroll all files in the current directory the Open Files ...
0
votes
1answer
208 views

Tab completion is not working for nested divs on sublime text 3

Tab completion is not working for my sublime text 3 on Mac OSX EI Capitan. I've checked my sublime text's settings and it's ”tab_completion": true When I type div.container and press tab it ...
1
vote
0answers
726 views

Shortcut to open another workspace in sublime text

Sublime text lets you switch current project workspace with ctrl+alt+p on Windows/Linux. I find myself often referencing older projects where I want to open another project quickly without closing the ...
1
vote
2answers
149 views

How to replace text in Sublime without moving the cursor or viewport

I am using Sublime Text to find some text in a file and make some changes to it, using the "Replace" command. When the thing I want to change is selected, if I click the "Replace" button, pick the "...
0
votes
1answer
505 views

How do I add a command to the tab context menu in Sublime?

I would like to add a command from my plugin to this context menu: This is the menu that pops up when you right click on a file. I only know how to add a command to the context menu that pops up when ...
1
vote
0answers
106 views

Ctrl+space autocompletion for TernJS (ST3)

I have a problem getting Ctrl+space autocompletion working per TernJS description (Sublime Text 3). Autocompletion as such seems to work, because if I define bbb variable as string per below, type .t,...
1
vote
1answer
38 views

Sublime text 3 asks me to choose a default language whenever I open it

Sublime text 3 asks me to choose a default language whenever I open it. I have the latest version, installed on windows 10. Each time I open sublime I see this Even if I pick english or whatever, the ...
3
votes
2answers
3k 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?
0
votes
1answer
2k views

Sublime Text 3 Automatically adds Javascript to Ignored Packages

I'm running Sublime Text 3 with the following Packages: "CSSLint", "HTML-CSS-JS Prettify", "Javascript Beautify", "JavaScript Completions", "JavaScript Ultimate", "JSLint", "Package Control", "Theme -...
1
vote
1answer
685 views

How to create new JavaScript snippet for Sublime Text 3?

I want c to trigger console.log() The snippet I created has the correct syntax below and is in the correct folder paths according to these articles: http://www.hongkiat.com/blog/sublime-code-snippets/...
1
vote
0answers
91 views

Sublime Text 3 - Terminal/Browser view

I've been searching for a plugin for Sublime that would allow me to access a terminal or browser preview in a second column (accessable via alt+Shift+2), similar to the c9.io interface (reference)
0
votes
1answer
285 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 ...
2
votes
2answers
2k views

Sublime Text 3 keeps crashing with “error: plugin_host has exited unexpectedly”

I'm using Windows 7 and Sublime Text 3 (build 3103). Sometimes it spontaneously throws an error and plugins stop working. Here's the error: error: plugin_host has exited unexpectedly, plugin ...
2
votes
2answers
1k 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 ...