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
63
votes
5 answers

Go to method declaration

Is it possible to got to PHP method declaration through method call in Sublime Text? // pressing some keys combination should navigate me // to the method declaration. If it's defined in some other file, // the file should be…
Roman Newaza
  • 11,405
  • 11
  • 58
  • 89
61
votes
1 answer

Sublime Text go to character number

How can I go to N-th character in the file. Ignoring all the line breaks, N-th character in the whole file. Similar to this vim command, but in sublime text
Andrii
  • 2,402
  • 1
  • 19
  • 17
60
votes
4 answers

how to change editor behavior in intellij idea

I have installed IntelliJIdea 14.0.2 just now. I do not know its default editor but it is opening my source files in vi option now. So, not letting me do default action like Ctrl + v, Ctrl + d which was present before and I used to like it. So, how…
surenyonjan
  • 2,097
  • 3
  • 17
  • 26
60
votes
3 answers

Select all and multiple cursors using SublimeText2

I have a text file with 100's of news articles. I need to Select All > Take cursor to the beginning of each line and have the 'multiple cursors' open so I can add some data. Since the new articles do not have the same begging character, I can not…
Ravi Ram
  • 24,078
  • 21
  • 82
  • 113
59
votes
7 answers

Autocomplete html tags in jsx (sublime text)

I would like to be able to use autocomplete for html tags in my react/jsx code. The same way it works for html files. Can i configure sublime text 3 to enable tags autocomplete for jsx files?
Igor Okorokov
  • 913
  • 1
  • 8
  • 15
59
votes
8 answers

how to install sublime text indent xml in sublime 3

I am trying to install https://github.com/alek-sys/sublimetext_indentxml in sublime text 3. I read In Sublime Text 3 - clone project from Github into Packages folder. Doesn't seem to work. I am not sure where the Packages folder is.
Stéphane Gerber
  • 1,388
  • 1
  • 17
  • 30
59
votes
6 answers

Sublime Text: How to jump to file from Find Results using keyboard?

If you File > Find in Files... ⇧+⌘+F you're brought to the Find Results, listing the files and highlighted matches. You can double-click either the filename/path or the matched line to open the file at the right line. I wonder if there is a way to…
muhqu
  • 12,329
  • 6
  • 28
  • 30
58
votes
2 answers

Sublime Text: Regex to convert Uppercase to Title Case?

I have a bunch of labels in a text file (e.g. MY LABEL:) that I need to make title case. I already know how I would make them all lower or upper case. For example: ^([A-Z &#]+:) to \L$1 However, is there a simple switch-based way to get title case?
Steve
  • 14,401
  • 35
  • 125
  • 230
58
votes
7 answers

Where to find a list of scopes for Sublime2 (or textMate?)

in .tmTheme files the scope key defines how a element is highlighted: name HTML: Attribute Values scope meta.tag string.quoted, meta.tag string.quoted…
Alex
  • 66,732
  • 177
  • 439
  • 641
57
votes
4 answers

How to change default code snippets in Sublime Text 3?

I know how to edit the snippets myself, just can't seem to be able to find the default ones in the new version of Sublime Text. EDIT: The snippet I am trying to find and consequently edit is the default for the Latex files, in particular the one…
nunos
  • 20,479
  • 50
  • 119
  • 154
56
votes
6 answers

How do I edit snippets in Sublime Text 3?

In Sublime Text 3, how do I edit my pre-existing snippet files? Is there a way of doing this within ST? At the time of writing, there doesn't seem to be a straightforward answer to this anywhere on the web.
Inigo
  • 8,110
  • 18
  • 62
  • 110
55
votes
3 answers

How to wrap each line in quotes in SublimeText?

Input: boston beach summer figural yellow blue boston floral flowers still still-life food pink figural boston horse pink purple house flowers floral figural Expected output: "boston beach summer figural yellow blue" "boston floral flowers still…
Aniket Suryavanshi
  • 1,534
  • 3
  • 14
  • 23
54
votes
7 answers

What's The Best Way To Write Multi-Line Code Snippets In VS-Code?

In Sublime Text, multi-line code snippets can be defined with white-spaces in a snippet file. But as far as I know, VS-Code needs a JSON entry. These require either: Hard-breaks into a list of double-quoted strings, or Soft-break a long string…
kakyo
  • 10,460
  • 14
  • 76
  • 140
54
votes
4 answers

Sublime Text 2 Code Formatting

First let me say I come from a Microsoft background and Visual Studio is my bread and butter. It has a command (keybind is arbitrary) that auto-formats any code syntax. The same command works in HTML, CSS, Javascript, C#, etc. I have tried…
Terry
  • 14,099
  • 9
  • 56
  • 84
53
votes
3 answers

Installing Sublime Text's command line tool 'subl' in terminal, permission denied?

I'm tryng to use Sublime Text from the terminal, for example by typing subl. I'm following the steps from Sublime Text's website: Setup The first task is to make a symlink to subl. Assuming you've placed Sublime Text 2 in the Applications folder,…
George Ananda Eman
  • 3,292
  • 8
  • 28
  • 29