Questions tagged [sublimetext]

Sublime Text is a text and source code editor for Linux, OS X and Windows. PLEASE 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.

Sublime Text

Sublime Text is a cross-platform C++-based text and source code editor. The program was originally designed as a feature-rich extension of Vim.

First release: 18 January 2008
Stable Version: Sublime Text 4 (Build 4143) / 11 November 2022
Dev Builds: Build 4147 / 22 December 2022

Features

  • Minimap: a preview of the full source code
  • Ability to select multiple sections of code
  • Multi-panel editing
  • Bookmarks within files
  • Native support for 44 (version 3) or 27 (version 2) programming languages included, with additional available for download
  • Autosave
  • RegEx-based find and replace
  • Fully customizable syntax highlighting
  • Brace matching, autocomplete
  • Support for macros and Python-based plugins
  • Custom key bindings
  • In-editor code building
  • Snippets
  • Goto Anything(File Navigation)
  • Column Selection and multi-select editing
  • Plugin Support

Platform Support:

  • Linux
  • macOS (10.9 or later required for dev builds)
  • Windows (also as a portable version)

Version 3

Version 3 entered beta on 29 January 2013. At first available only for registered users who have purchased Sublime Text 2, on 28 June 2013 it became available to the general public. However, the very latest development builds still require a registration code.

Two of the main features that Sublime Text 3 adds include symbol indexing and pane management. Symbol Indexing allows Sublime Text to scan files and build an index to facilitate the features Goto Definition and Goto Symbol in Project. Pane Management allows users to move between panes via hotkeys.

Sublime Text 3 is very stable, as of 22 March 2016, about 80% of those using Package Control are running version 3 and Sublime Text 3 is the default download version on its website.

Related Tags

Source: Wikipedia

3417 questions
1390
votes
16 answers

How do I reformat HTML code using Sublime Text 2?

I've got some poorly-formatted HTML code that I'd like to reformat. Is there a command that will automatically reformat HTML code in Sublime Text 2 so it looks better and is easier to read?
Ravi Ram
  • 24,078
  • 21
  • 82
  • 113
747
votes
5 answers

Set default syntax to different filetype in Sublime Text 2

How do I set a default filetype for a certain file extension in Sublime Text 2? Specifically I want to have *.cfg files default to having Ini syntax highlighting but I cannot seem to figure out how I could create this custom setting.
keiththomps
  • 8,005
  • 3
  • 15
  • 17
580
votes
7 answers

How to customise file type to syntax associations in Sublime Text?

I'd like Sublime 2 editor to treat *.sbt files (to highlight syntax) as Scala language, same as *.scala, but I can't find where to set this up. Do you happen to know?
Ivan
  • 63,011
  • 101
  • 250
  • 382
559
votes
33 answers

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
  • 5,591
  • 3
  • 14
  • 3
557
votes
13 answers

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
  • 11,414
  • 7
  • 36
  • 43
548
votes
6 answers

How do I force Sublime Text to indent two spaces per tab?

Is there a way to force Sublime Text 2 to always indent two spaces per tab when working with Ruby files? I know that indentation can be set under the view -> indentation menu option, but it does not stick. Every time I open a new file and hit tab,…
Mohamad
  • 34,731
  • 32
  • 140
  • 219
510
votes
20 answers

Indenting code in Sublime text 2?

In Visual Studio I can press Ctrl+K+D to indent everything so the code is structured nicely and readable. Is there a shortcut in Sublime 2 to do the same?
Kimpo
  • 5,835
  • 4
  • 26
  • 30
492
votes
11 answers

Comparing the contents of two files in Sublime Text

I have two cloned repositories of two very similar open-source projects, which I have been working on in different instances in Sublime Text 2 to arrive at my desired result. Code from both of these projects was used. I have been using Git as…
LanceLafontaine
  • 5,680
  • 4
  • 20
  • 34
461
votes
11 answers

Sublime Text 2 - View whitespace characters

How can Sublime Text show non printable characters (I'm interested in SPACEs and TABs)?
imkost
  • 8,033
  • 7
  • 29
  • 47
454
votes
10 answers

How to select all instances of a variable and edit variable name in Sublime

If I select a variable (not just any string) in my code, all other instances of that variable get a stroke (white outline) around them: Is there a keyboard shortcut that will let me select all of those instances of the variable and edit them all at…
Oskar Persson
  • 6,605
  • 15
  • 63
  • 124
449
votes
10 answers

Sublime Text 2 - Show file navigation in sidebar

I just switched to Sublime Text as my new editor. If I open the sidebar it shows the opening file, but what I want is a file navigation sidebar, is it possible to change that without downloading plugins?
sozhen
  • 7,627
  • 14
  • 36
  • 53
424
votes
5 answers

How to convert a selection to lowercase or uppercase in Sublime Text

I have several strings selected in a file in Sublime Text and I want to convert them all to lowercase. How can I convert them all to lowercase in Sublime Text?
arturomp
  • 28,790
  • 10
  • 43
  • 72
353
votes
8 answers

Replace uppercase with lowercase letters

I'm trying to replace uppercase letters with corresponding lowercase letters using regex. So that EarTH: 1, MerCury: 0.2408467, venuS: 0.61519726, becomes earth: 1, mercury: 0.2408467, venus: 0.61519726, in Sublime Text. How can I downcase…
leemour
  • 11,414
  • 7
  • 36
  • 43
334
votes
14 answers

What is the difference between Sublime text and Github's Atom

Github announced Atom which is very similar to Sublime. Even some keyboard shortcuts like ⌘ + P, ⌘ + Shift + P etc. are same. How is Atom different from Sublime? Does it include IDE features like build tools, function definition jumps,…
Om Shankar
  • 7,989
  • 4
  • 34
  • 54
325
votes
6 answers

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
  • 19,560
  • 31
  • 97
  • 141
1
2 3
99 100