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
176
votes
3 answers

What are the advantages of Sublime Text over Notepad++ and vice-versa?

Lots of friends have suggested me to start using Sublime Text instead of Notepad++, but I've been happy so far with Notepad++. I use Notepad++ mainly for quick editing files (Haskell, Python, C#, HTML, JS, CSS, etc.), copying & paste pieces of text…
Oscar Mederos
  • 29,016
  • 22
  • 84
  • 124
167
votes
7 answers

How to paste text to end of every line? Sublime 2

I'm curious if there is a way to paste text to the end of every line in Sublime 2? And conversely, to the beginning of every line. test line one test line two test line three test line four ... Say you have 100 lines of text in the editor, and you…
Tony H.
  • 1,975
  • 4
  • 14
  • 20
161
votes
13 answers

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, we can't use it with keyboard (arrows for…
156
votes
2 answers

Sublime Text regex not detecting multiline tags

I have this regex here; \[sometag\](.*)\[/sometag\] Which is supposed to catch text surrounded by the [sometag] tag. It works for single line information contained in these tags, like on the string [sometag]this is a bit of text[/sometag]. But it…
Maurdekye
  • 3,597
  • 5
  • 26
  • 43
155
votes
10 answers

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 would look like: 0x45 0x28 0x42 0x65 0x24 0x87 0x47…
Syperus
  • 1,707
  • 2
  • 11
  • 11
154
votes
9 answers

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 like some kind pwd command. But it doesn't…
MacKentoch
  • 2,346
  • 3
  • 14
  • 19
148
votes
7 answers

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 to create this binding. I looked here for…
Kivylius
  • 6,357
  • 11
  • 44
  • 71
146
votes
9 answers

Syntax highlighting for Jade in Sublime Text 2?

I just started using Sublime Text 2 on Mac. I also just started using Jade for my views in Node.js, and am wondering if there is a way to add syntax highlighting for Jade into Sublime Text 2.
James Simpson
  • 13,488
  • 26
  • 83
  • 108
142
votes
10 answers

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 not connected How can I filter out all the lines…
energ1ser
  • 2,703
  • 4
  • 24
  • 31
140
votes
3 answers

Configure Sublime Text on OS X to show full directory path in title bar

On Linux, Sublime Text shows the full path of my currently open file in the title bar by default, but on OS X, it only shows the name of the file. How can I configure Sublime on OS X to show the full path to the currently open file in the title bar?
Katarzyna
  • 1,712
  • 2
  • 11
  • 14
138
votes
15 answers

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 different in sublime text3?
zhxchen17
  • 1,617
  • 2
  • 16
  • 23
135
votes
14 answers

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: Mac OSX 10.10.1 Yosemite, Sublime Text 3 Stable…
connexo
  • 53,704
  • 14
  • 91
  • 128
134
votes
7 answers

Find closing HTML tag in Sublime Text

I have a very long and very nested HTML document, where I need to quickly find the closing tag. How can I do this?
Pavel Binar
  • 2,096
  • 5
  • 16
  • 26
128
votes
5 answers

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
  • 1,865
  • 4
  • 19
  • 17
127
votes
10 answers

Shortcut to comment out a block of code with sublime text

I want to comment out a block of code in sublime text. I see it in RailsCasts, but don't think he uses sublime text ... to do the following ... if (uncommented) some uncommented example # if (commented) # some commented example code #…
user749798
  • 5,210
  • 10
  • 51
  • 85