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
52
votes
4 answers

.m files as MATLAB/Octave for Sublime Text

Sublime sees .m files as Objective C files. I've been given a bunch of MATLAB/Octave files to work with using Octave, all with .m extensions. If I change the extensions to .matlab, then Sublime will recognize them and format them correctly, but…
scharfmn
  • 3,561
  • 7
  • 38
  • 53
51
votes
8 answers

How to Open files and folders in same window in Sublime Text on macOS?

If I open ~/foo.txt then open ~/baz/bar.txt from Terminal, Sublime Text always opens 2 different windows. It's aggravating to have all these different windows open.. I've tried changing a bunch of ST's settings, but nothing seems to fix this. Is…
corysimmons
  • 7,296
  • 4
  • 57
  • 65
51
votes
6 answers

How to change style of matched brackets in Sublime Text 2 / 3?

It's just underlining the matched brackets, Is it possible to make it more useful like changing brackets colour or highlighting the line of brackets?
Okan Kocyigit
  • 13,203
  • 18
  • 70
  • 129
51
votes
3 answers

ide sublime2 how to find method definition

I'm using Sublime 2 for Ruby On Rails programming. I need a ability to click a method name and jump to class where the method is defined. There are many IDE with similar capability...
Lesha Pipiev
  • 3,251
  • 4
  • 31
  • 65
50
votes
9 answers

Is it possible to chain key binding commands in sublime text 2?

There are times in Sublime Text when I want to reveal the current file in the side bar and then navigate around the folder structure. This can be achieved using the commands reveal_in_side_bar and focus_side_bar however they have to be bound to two…
James Hollingworth
  • 14,040
  • 12
  • 39
  • 57
50
votes
9 answers

Sublime Text 3 Deleting Code when I hit Tab Key

When I highlight a block of code in Sublime Text 3 and press the Tab key, it doesn't indent the whole block like it used to. Instead, it deletes the highlighted code. Anybody know how to fix this?
user3236406
  • 579
  • 1
  • 4
  • 10
49
votes
6 answers

sublime text : open containing folder

I'm working on some file in my sublime text 2 editor, and I want to open a folder in which that file resides. I know there is a 2 step procedure to do this already step 1: right click and reveal in sidebar (ctrl+shift+r) step 2: right click on the…
sublime
  • 4,013
  • 9
  • 53
  • 92
48
votes
6 answers

How to disable new version notifications?

Whenever I open Sublime Text it throws a pop-up: A new version of Sublime Text is available, download now? How can I disable this check? My work blocks installing software updates.
Colonel Panic
  • 132,665
  • 89
  • 401
  • 465
48
votes
9 answers

Selecting multiple lines in Atom

Is there any way in Atom to replicate the feature in Sublime Text where you can hold down the alt key and move the mouse up or down to select and create a cursor at the end of multiple line so you can edit multiple lines simultaneously?
pyCthon
  • 11,746
  • 20
  • 73
  • 135
48
votes
3 answers

How to disable/override the enter key for autocomplete?

In Sublime Text 3, I want to disable the enter key to select an item from the autocomplete drop down, and only allow the tab key to do so. I found this section in the inbuilt Default (OSX).sublime-keymap file: { "keys": ["enter"], "command":…
gak
  • 32,061
  • 28
  • 119
  • 154
48
votes
3 answers

Sublime Text 2 : colour of edited file tab?

I see that the Sublime Text theme (.config/sublime-text-2/Packages/Theme - Default/Default.sublime-theme) can be edited to make the open tab more obvious. For that I use { "class": "tab_control", "attributes": ["selected", "file_medium_dark"], …
Rhubbarb
  • 4,248
  • 6
  • 36
  • 40
47
votes
4 answers

Sublime Text 2: custom PATH and PYTHONPATH

I'm using brew which installs python (2.7.2) in /usr/local/bin/ However, the default system python (2.7.1) is executed instead at /usr/bin/, which seems to be because it doesn't obey any of the bash PATH environment variables. Also, it can't find my…
FLX
  • 4,634
  • 14
  • 47
  • 60
47
votes
5 answers

Syntax highlighting for Dockerfile in Sublime Text?

Is it possible to get syntax highlighting for a Dockerfile in Sublime Text?
Ben Harrison
  • 2,121
  • 4
  • 24
  • 40
47
votes
2 answers

How to edit Sublime Text build settings?

I want to enable -std=gnu++11 in Sublime Text 3's C++ Single File build on Ubuntu 12.04. I have already upgraded the tool chain to the latest g++ and do not want to see the following error on every build: error: #error This file requires compiler…
user1149549
47
votes
3 answers

Sublime text 2 find in folder with file extension

How do I search in a folder in sublime text 2 with file extension? My where when I use: *.js searches globally for all js files. If I try to restrict it to a folder: /project/*.js it matches nothing.
Harry
  • 52,711
  • 71
  • 177
  • 261