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
324
votes
7 answers

How to select all instances of selected region in Sublime Text

Is there a shortcut key or single-step menu option to find and select all instances of a highlighted selection in Sublime Text?
Martin Devarda
  • 3,273
  • 2
  • 15
  • 6
320
votes
8 answers

How to replace four spaces with a tab in Sublime Text 2?

I want to replace all the "four spaces" that is written by another text editor with tabs. How can I do it?
Mohsen
  • 64,437
  • 34
  • 159
  • 186
317
votes
15 answers

How do I run Python code from Sublime Text 2?

I want to set up a complete Python IDE in Sublime Text 2. I want to know how to run the Python code from within the editor. Is it done using build system? How do I do it ?
neo
  • 3,289
  • 3
  • 15
  • 5
308
votes
2 answers

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
  • 17,148
  • 27
  • 124
  • 216
297
votes
8 answers

How to make ruler always be shown in Sublime text 2?

I use Sublime Text 2 and want a Ruler to be shown in every file with specific line-height. But I have to show it manually in every file.
Denis Óbukhov
  • 4,129
  • 4
  • 20
  • 27
245
votes
18 answers

How can I make Sublime Text the default editor for Git?

I have a problem setting Sublime Text 2 as the core.editor with git. I've read through every post I could find addressing the problem, but still nothing is working for me. I am running Windows. I have done: git config --global core.editor…
Spencer Moran
  • 2,530
  • 3
  • 15
  • 13
240
votes
12 answers

Limit File Search Scope in Sublime Text 2

In Sublime Text, I often use Cmd+P/Ctrl+P to search and jump between files. Often, it would pick up temporary or cached files like .scssc or things in the /tmp folder. Is there a way that I can limit what is shown in the search result?
rickypai
  • 4,016
  • 6
  • 26
  • 30
229
votes
9 answers

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
  • 3,736
  • 5
  • 26
  • 39
226
votes
11 answers

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? // edit: My desire is to do this automatically!…
chris
  • 4,827
  • 6
  • 35
  • 53
223
votes
30 answers

Sublime Text from Command Line

I installed Sublime Text and wanted to know how to open rb files in it from the terminal. I saw What is the command to make Sublime Text my core editor? and I see that I can make Sublime my core editor, but I want to be able to type sublime…
mehulkar
  • 4,895
  • 5
  • 35
  • 55
197
votes
8 answers

Vim multiline editing like in sublimetext?

I started to use gvim, and I can't quite understand how the multiline edit works in gvim. For example: Original text: asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd…
AlfredoVR
  • 4,069
  • 3
  • 25
  • 33
193
votes
5 answers

How can I select every other line with multiple cursors in Sublime Text?

In Sublime Text 2, is it possible to instantly select every other (or odd/even) line and place multiple cursors on those lines? Thanks.
user2136580
  • 2,031
  • 2
  • 13
  • 5
192
votes
5 answers

In Sublime Text 2, how do I open new files in a new tab?

When I'm editing with files on the server, and I click to edit them, if I'm editing multiple files (say an HTML file and a CSS file) but they open in new windows, which, on my small laptop display is a little inconvenient. How do I make it open in a…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
192
votes
5 answers

What is the full path to the Packages folder for Sublime text 2 on Mac OS Lion

I'm not seeing this question anywhere so I can only assume I'm doing something really stupid but... What is the full path to the "Packages" folder for Sublime Text 2. I'm looking to install a new theme. When I go to /Applications/Sublime Text…
Derek Organ
  • 8,323
  • 17
  • 56
  • 75
182
votes
9 answers

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 don't know its command name. I already have this…
user2342558
  • 5,567
  • 5
  • 33
  • 54