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

How do I close a folder in Sublime Text?

After opening Sublime Text 3, I chose to open a folder. This was a git repo, containing some folders that were static files which are cluttering up the folder list. When I right-click on a folder, there is no 'close' option. The antonym of open is…
nmz787
  • 1,960
  • 1
  • 21
  • 35
44
votes
7 answers

Sublime Text CoffeeScript build system: `env: node: No such file or directory`

I'm trying to set up a CoffeeScript build system in Sublime Text 3, but I keep getting the following error: env: node: No such file or directory [Finished in 0.0s with exit code 127] [cmd: ['coffee',…
CourtDemone
  • 5,772
  • 6
  • 23
  • 25
44
votes
1 answer

Regex to replace values that include part of match in replacement in sublime?

I've come up with this regex that finds all words that start with $ and contain _ underscores: \$(\w+)_(\w+) I'm basically searching for variables, like $var_foo etc. How do I replace stuff using the regex groups? For example, how can I remove the…
Alex
  • 66,732
  • 177
  • 439
  • 641
42
votes
6 answers

Autoindent on Sublime Text

Are there any command/shortcut to auto-indent all my code on the page at once on Sublime Text 3? e.g: On NetBeans I can do this with Alt+Shift+F.
Thiago Anderson
  • 587
  • 1
  • 6
  • 13
42
votes
4 answers

How to move line up in Mac for Sublime Text?

On OS X when I use the shortcut provided in documentation (⌘ + ⌃ + Up which I read as Command + Shift + Up) Sublime Text selects the text instead of moving the line up. Am I missing something?
Aurimas
  • 2,577
  • 5
  • 26
  • 37
42
votes
5 answers

Sublime Text 2 - Package Control installed but the list not shown

I am using Sublime Text 2 for Mac. I have installed the Package Control for Sublime Text 2, following the instructions from https://sublime.wbond.net/installation#st2 without any trouble. However, when I open up Ctrl+Shif+P to search for available…
phanatuan
  • 495
  • 1
  • 5
  • 14
42
votes
1 answer

Sublime Text wrap selection with snippet

I've been digging into Sublime's snippets, plugins and macros, but I can't seem to find what I'm looking for. I'm trying to turn this: .content { color: @blue; } Into this: .content { color: darken(@blue, 5%); } Ideally, I'd be able to…
saltcod
  • 2,003
  • 5
  • 21
  • 36
41
votes
12 answers

RubyTest in Sublime Text 2

I am trying to get RubyTest to work in Sublime Text 2. I followed the Instruction on the Github Readme and get the following error. Does anyone know how I could fix this? /bin/sh: rspec: command not found
ChuckJHardy
  • 6,956
  • 6
  • 35
  • 39
41
votes
2 answers

How do I add Sublime Text 2 keybindings?

I am looking to get the following assigned to Keybindings. I am able to make a snippet for this, yet would prefer to be able to CTRL + > just like in Textmate. <%= %> What do I need to add and where do I need to add it, or where could I find out.
ChuckJHardy
  • 6,956
  • 6
  • 35
  • 39
41
votes
4 answers

Sublime Text on Ubuntu 14.04 - Keeps attempting to remove it

Sublime & from Terminal, opens a Sublime Text window, but keep getting this message: (sublime: 6476): GLib-CRITICAL **; Source ID 1982 was not found when attempting to remove it. The Source ID keeps changing. Using Ubuntu 14.04. Any ideas what…
Janeway
  • 511
  • 1
  • 4
  • 5
41
votes
1 answer

Sublime Text - Goto line and column

Currently, the Go to line shortcut (CTRL+G in windows/linux) only allows to navigate to a specific line. It would be nice to optionally allow the column number to be specified after comma, e.g. :30,11 to go to line 30, column 11 Is there any plugin…
Leo Gallucci
  • 16,355
  • 12
  • 77
  • 110
41
votes
3 answers

How to view terminal color codes as colors in Sublime Text

I have some log files that use color schemes. I would like to be able to view those logs in Sublime Text and still see the colors. Currently when I view the log file I see things like this: 2013-11-20T15:53:02.711Z - [34minfo[39m: Default profiles…
Thijs Koerselman
  • 21,680
  • 22
  • 74
  • 108
41
votes
3 answers

Show active plugins in Sublime Text and disable them

I just installed sublime text 2 and was overwhelmed by the php plugins that I installed ALL of them. Now auto-complete is crazy, a million unnecessary suggestions and I dont remember which plugin does what or which ones I installed. Is there a way…
frazras
  • 5,928
  • 4
  • 30
  • 40
40
votes
8 answers

Sublime Text 3 white boxes around lines

Note: Just started programming in Python using Sublime Text 3. I am not sure why I am getting the white dots/mark on every line, see image below. I would like learn the following. Is it because of an error? Is it because of a package or command? I…
ASE Dev
  • 512
  • 2
  • 5
  • 14
40
votes
5 answers

Highlighting comments containing TODO in Sublime Text 2

Is there a way to tell Sublime to highlight comments that contain the word "TODO"? I've looked for plugins that do this but haven't really been able to find much.
samturner
  • 2,213
  • 5
  • 25
  • 31