Skip to main content

Questions tagged [sublimetext3]

DO NOT USE THIS TAG UNLESS YOUR QUESTION IS SPECIFICALLY ABOUT SUBLIME TEXT ITSELF. Do not tag your IDE or source code editor in questions about unrelated topics. Please make sure you are running Sublime Text version 3 (note that version 4 was released in May 2021 and should be tagged sublimetext4). Sublime Text 3 is a multi-language, multi-platform code editor, developed by Jon Skinner. It has a Python API to allow plugins for augmented functionality.

sublimetext3
Filter by
Sorted by
Tagged with
575 votes
33 answers
446k views

Open Sublime Text from Terminal in macOS

In Terminal when I use .subl It returns -bash: .subl: command not found Anyone know how to open Sublime Text 3 from the command line in macOS?
user1405049's user avatar
  • 5,751
569 votes
13 answers
471k views

Replace \n with actual new line in Sublime Text

How can I replace \n in Sublime Text with real in-editor displayed new line so: foo\nbar becomes: foo bar in the editor when I view the file in it.
leemour's user avatar
  • 11.8k
379 votes
21 answers
410k views

Eslint: How to disable "unexpected console statement" in Node.js?

I'm using eslint with Sublime Text 3 and I am writing gulpfile.js. /*eslint-env node*/ var gulp = require('gulp'); gulp.task('default', function(){ console.log('default task'); }); But eslint ...
Jean Y.C. Yang's user avatar
370 votes
14 answers
368k views

CMD opens Windows Store when I type 'python'

Today when I tried to run simple code on Sublime Text 3, the following message appeared: Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=...
João Vitor Degrandi's user avatar
325 votes
6 answers
314k views

Search in all files in a project in Sublime Text 3

Is there a way to search for a string in all files inside a project in Sublime Text 3? The string is not a method.
Ivan's user avatar
  • 20k
312 votes
2 answers
141k views

80-characters / right margin line in Sublime Text 3

You can have 80-characters / right margin line in Netbeans, Text Mate and probably many, many more other IDEs. Is it possible to have it in Sublime Text 3 as well? Any option, plugin etc.?
trejder's user avatar
  • 17.4k
233 votes
9 answers
192k views

Showing the same file in both columns of a Sublime Text window

When I have 2 columns set in a Sublime Text window, can I display the same file in both columns?
user2777473's user avatar
  • 3,796
227 votes
11 answers
219k views

Sublime Text 3, convert spaces to tabs

I know there are a lot of posts about this, but I couldn´t get it to work. I use tabs for coding. Is there a way, to convert always spaces to tabs? I.e. on open and on Save files? Anyone got an idea? ...
chris's user avatar
  • 4,867
223 votes
9 answers
484k views

Sublime Text - JSON formatter shortcut

I'm using SublimeText. How to reindent Json code with a shortcut? I've already installed packageControl and it works. I already tried JsonReindent package but it has not a shortcut by default and i ...
user2342558's user avatar
  • 6,273
192 votes
27 answers
298k views

Keyboard shortcut to comment lines in Sublime Text 3

In Sublime Text 2 it was possible to comment out a line or a block of lines with Ctrl+/ and Ctrl+Shift+/. According to the menu Edit > Comment these shortcuts should be valid, but in Sublime Text ...
0x4a6f4672's user avatar
165 votes
6 answers
45k views

Removing projects in Sublime Text 2 and 3

How do you remove a project from Sublime Text 2 and 3's project windows (Ctrl+Alt+P) ? Delete has no effect, there is no contextual menu, and deleting the associated files *.sublime-project and *....
Anto's user avatar
  • 7,084
161 votes
13 answers
54k views

How to use sidebar with the keyboard in Sublime Text 2 and 3?

When using Sublime Text 2 we tend to open the side bar to navigate thru files/folders in our projects. For that we can use the hotkey ctrl+k ctrl+b (in windows). However, once we're in the side bar, ...
Santi Agüero's user avatar
161 votes
9 answers
63k views

How to (easily) get current file path in Sublime Text 3

How to (easily) get current file path in Sublime Text 3 I don't often use ST console (I used it only once to install package manager), but I suppose it could be good way to : get current file path ...
MacKentoch's user avatar
  • 2,416
155 votes
10 answers
217k views

Sublime Text 2 multiple line edit

I want to edit multiple lines and every "word" within that line. For example: 45 28 42 65 24 87 47 95 01 25 87 98 I want to select every whole number in all lines and put a "0x" before it so it ...
Syperus's user avatar
  • 1,707
151 votes
10 answers
132k views

Sublime - delete all lines containing specific value

I have a 900mb log file which I can open in SublimeText 3. This file is bloated with lines similar to the following. 10/08/2014 23:45:31:828,Information,,,,ExportManager: ,No records to send and/or ...
energ1ser's user avatar
  • 2,833
148 votes
7 answers
144k views

Sublime 3 - Set Key map for function Goto Definition

I want to create an Eclipse style shortcut Ctrl+MouseClick to open the function/method. Sublime Text 3 has already this function called goto_definition but it is bound to F12. But I'm not sure how ...
Kivylius's user avatar
  • 6,447
139 votes
15 answers
136k views

Sublime Text 3 how to change the font size of the file sidebar?

Though I have tried to modify "font.size" in classes like "Label_control" and "sidebar_control" in the Package "Theme-Default", the font size of the editor does not change at all. Is there anything ...
zhxchen17's user avatar
  • 1,637
135 votes
14 answers
118k views

Why do Sublime Text 3 Themes not affect the sidebar?

I generally only use dark themes for coding, so it's really annoying that Sublime Text 3's sidebar stays light themed whatever theme you apply. Does anyone know how to change this? My configuration: ...
connexo's user avatar
  • 55.8k
130 votes
5 answers
140k views

What is the default font of Sublime Text?

I was looking and could not find an answer on this one. Which is Sublime Text's default font type?
Uninvited Guest's user avatar
129 votes
8 answers
89k views

How to get support of TypeScript with Sublime Text 3?

I am currently working in Angular and I get good support of Typescript with Sublime Text. How can I get support of TypeScript with my Sublime Text editor? I tried to hit Shift + Ctrl + P and then ...
Mohan Gopi's user avatar
  • 7,686
129 votes
4 answers
51k views

Atom text editor remove trailing whitespace on save

I use Sublime text. Now I am trying Atom. When I save any file in sublime text it does not include any trailing blank line. But saving any file in Atom leaves a trailing blank line. How do I force ...
Nasif Md. Tanjim's user avatar
126 votes
5 answers
79k views

How can I put cursor on every line in Sublime Text?

I want to be able to edit every line of my data simultaneously, for instance put quotations in front of every line. I am wondering what the key combination is that will enable me to do this.
Jacko's user avatar
  • 1,363
126 votes
5 answers
40k views

How do I exclude a folder from search in sublime text 3 permanently?

is there a way to always ignore a folder... in project view. I have multiple apps in one repo and have 'node_modules' in each app mainapp ├── microapp │ └── node_modules ├── microapp2 │ └── ...
nolawi's user avatar
  • 4,589
123 votes
1 answer
53k views

How to jump to previous and last cursor in Sublime Text 3? [closed]

How to jump back and forward through the cursor position history in Sublime Text? I google a lot and find BufferScroll. But it doesn't work for me. I can't find any shortcut or how to use it in the ...
cruelcage's user avatar
  • 2,074
121 votes
5 answers
24k views

How can I exclude a folder from indexing in Sublime Text, while still showing it in the sidebar?

For a large project with many dependencies e.g. in the node_modules/ folder, I noticed frequent CPU spikes because of Sublime indexing all the files in the folder. I know I can hide files and folders ...
Geir Sagberg's user avatar
  • 9,761
119 votes
2 answers
45k views

Hide files with certain extension in Sublime Text Editor?

is it possible to hide all the files with certain extension from the sidebar (lateral nav bar) in Sublime Text Editor 3?
Sovos's user avatar
  • 3,390
118 votes
3 answers
20k views

How to configure Sublime Text 2/3 to use direct Ctrl+Tab order and to create new tabs after the last one?

When I press Ctrl+Tab, Ctrl+Shift+Tab or Ctrl+W the tab I get switched to is not the one just near the one I was on (as I would like to) but to some else. When I press Ctl+N the new tab is created ...
Ivan's user avatar
  • 63.8k
117 votes
6 answers
64k views

How can I jump to line in Sublime Text?

Does anyone know of a shortcut for jumping to a specific line (given a #) in Sublime Text? Ex: I run code and get an error at line 5765. I want to be able to jump quickly in Sublime Text to line 5765, ...
Alexsandra Guerra's user avatar
115 votes
9 answers
124k views

How to Install Sublime Text 3 using Homebrew cask

How can I use Homebrew cask to install Sublime Text 3? I only see Sublime Text 2 when using Homebrew's search. I even tried tapping homebrew/versions, but no luck.
ZakTaccardi's user avatar
  • 12.4k
105 votes
4 answers
223k views

Set Encoding of File to UTF8 With BOM in Sublime Text 3

When I open a file in Sublime Text 3, at the bottom I have an option to set the Character Encoding as shown in the screenshot. There is the option to set it to UTF-8 , which after doing some research ...
J86's user avatar
  • 15k
105 votes
3 answers
245k views

Sublime text 3. How to edit multiple lines? [duplicate]

I was using Notepad++ and now I want to use the same cool features in Sublime but I don't know how. I want to edit multiple lines at the same time like this: But I don't want to Ctrl+Click at each ...
Lory's user avatar
  • 1,519
104 votes
5 answers
39k views

syntax highlighting for react code in sublime

I'm started writing some basic React code in sublime text. Here is what my syntax highlighting looks like. Its partly highlighted. Is there any suggested sublime plugin i can use to see a complete ...
noi.m's user avatar
  • 3,122
97 votes
6 answers
44k views

More than one folder / project in one Sublime Text 3 window

I can have only one project / path opened in in the same time, in one Sublime Text 3 window. Each time I quickly switch project (Ctrl+Alt+P), new project replaces current one. Each time I open new ...
trejder's user avatar
  • 17.4k
97 votes
5 answers
153k views

Change / Add syntax highlighting for a language in Sublime 2/3

I want to change / add syntax highlighting for a language in Sublime 2/3. For example I want the keyword this colored in JavaScript. How can I do that? I know that there is a preference JavaScript ...
Niklas's user avatar
  • 24.9k
96 votes
4 answers
64k views

RuboCop: Line is too long ← How to Ignore?

I just added RuboCop to a rails project and installed the Sublime package to see RuboCop suggestions in the editor. I'm trying to figure out how to change the maximum line length from 80 characters, ...
Abram's user avatar
  • 41.3k
95 votes
5 answers
93k views

Fold / Collapse the except code section in sublime text 2

Is there any plugin or shortcut to hide all except code section in sublime text 2? I need to fold all except section at a time , Not fold one section at a time. Thanks~
newBike's user avatar
  • 14.9k
95 votes
10 answers
218k views

Anaconda Python: where are the virtual environments stored?

I am new to Anaconda Python and I am setting up a project in Sublime Text 3. I have installed Anaconda and created a virtual environment using: conda create -n python27 python=2.7 anaconda conda ...
StillLearningToCode's user avatar
85 votes
5 answers
58k views

Migrate from Sublime text 2 to Sublime text3

I need to migrate from sublime text 2 to sublime text 3 to have all the same configuration/plugins I have installed on the sublime text2. I installed sublime text 3, but it does not have any of the ...
Fizer Khan's user avatar
  • 91.3k
84 votes
9 answers
107k views

Merge multiple lines into one using Sublime Text

I am very new to Sublime Text and I am sure this is a naive question. Watching the Multiple line selection at http://www.sublimetext.com/ (2/6 slide). Absolutely love it. I understand that Ctrl (...
Arun Manivannan's user avatar
84 votes
10 answers
129k views

Column/Vertical selection with Keyboard in SublimeText 3

I'm on a Mac. I have 7 columns in Sublime Text 3, each 300 lines each. If possible, I would like to select only the 4th column using a single keyboard shortcut. Unsuitable options ctrl + shift + up/...
user2544542's user avatar
  • 1,463
83 votes
2 answers
75k views

Sublime Text 3: Drag & Drop, Move & Create a copy of files & folders

Is it possible to Drag & Drop, Move & Create a copy of files & folders from within Sublime Text? I can rename, delete and have a plugin so that I can reveal in finder, but no other ...
Gravy's user avatar
  • 12.4k
81 votes
6 answers
72k views

How can I export/import settings of Sublime Text 3 from one PC to another using Windows?

I use Sublime Text 3 in my company and I want to export all the settings, including packages and whatever, to use the same configurations in Sublime Text 3 I have at home. How can I do this? PS.: I ...
user3746779's user avatar
80 votes
4 answers
194k views

How to open remote files in sublime text 3

I am connecting to remote server using "mRemoteNG" and want to open remote server files in my local sublime text editor. During my research, I found this relevant blog https://wrgms.com/editing-files-...
Raman Balyan's user avatar
  • 1,023
79 votes
4 answers
7k views

Avoid auto-period character after quick type space in Sublime Text 3

I've noticed that in Sublime Text 3, that if I type a word and then double-space quickly after I'm done entering the word in, it automatically places a period after the word Something like obj + two ...
ariestav's user avatar
  • 2,909
77 votes
7 answers
40k views

How do you make Sublime Text 3 open a file in a new tab instead of opening it in the current tab?

When I click the file I want to open in Sublime, it is replacing the current tab I have open. It used to open it in a new tab.
Mark A's user avatar
  • 2,065
74 votes
4 answers
63k views

How to force folder refresh in Sublime, when "Project > refresh" doesn't work?

Especially when using an sftp drive (but this problem is also an issue with local drives, although thankfully not as frequent), the folders in the sidebar just keep spinning and spinning, and the "...
aliteralmind's user avatar
  • 20.1k
69 votes
7 answers
39k views

Close all tabs, but not the window, in Sublime Text

Is there a way to close all tabs in one go in Sublime Text, but leave the window with the current project open? It is really annoying when I just want to close all open file and start the new task I ...
firedev's user avatar
  • 21k
69 votes
3 answers
52k views

How to set scss syntax in Sublime 3?

I'm using Sublime 3 editor. When I open a SCSS file it shows many red characters because it misjudged the syntax. When I press CTRL + Shift + P and type sass or scss I get no option. I had to set ...
user31782's user avatar
  • 7,443
69 votes
4 answers
65k views

SublimeText3 Fold/Unfold all methods

I am using SublimeText3 for C++ and Java. I am wondering if there is a way to fold all of the methods in a file / class, and then unfold them all, regardless of where the caret is. Or is there a way ...
Scorb's user avatar
  • 1,719
69 votes
1 answer
59k views

Change Default settings in Sublime Text 3

After installing sublime text 3 on Linux, I cannot seem to change the default settings, for example: // Controls auto pairing of quotes, brackets etc "auto_match_enabled": true, I can't replace ...
viktorino's user avatar
  • 809

1
2 3 4 5
128