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
1
vote
1 answer

ReactJS JSX Auto Complete No Longer Working

I used to be able to type div and then press tab and sublime would autocomplete and output
. The same thing with components. I would type MyComponent and press tab and sublime would autocomplete . Since today…
hubvill
  • 237
  • 1
  • 14
1
vote
2 answers

(Sublime Text 3) bash: javac: command not found

I'm trying to get a working build system for Java on Sublime Text 3, but whenever I try to run anything, i just get bash: javac: command not found. The strangest thing about this is that I can run the javac command from a terminal, as I have added…
CyberJelly
  • 25
  • 2
1
vote
1 answer

How to search files with A and without B in Sublime Text 3?

Using the Sublime Text 3 file search feature is it possible to search for files within a directory (and all its subdirectories) to see if they contain string A_STR (or RegExp /A_STR/) but do not contain B_STR (or RegExp /B_STR/)?
AGamePlayer
  • 7,404
  • 19
  • 62
  • 119
1
vote
3 answers

f-strings works on python IDLE but not on Sublime Text

I have just started reading the 2nd edition of Python Crash Course, and just in case someone has the book, I am on the subsection "Using Variables in Strings" in chapter 2. The problem is, when I enter first_name = "ada" last_name =…
1
vote
1 answer

Sublime Text 3: How do I have multiple workspaces associated with the same project file?

Say, I have two windows, each containing several open tabs, and I want that "structure" to be viewed as one – either a project or a workspace, I do not care. All I want is to be able to close and then re-open both the windows via a single "open"…
curious
  • 11
  • 2
1
vote
0 answers

Getting some icon over the folder in a sublime text editor

I am using MacBook Air, I am using Sublime text editor for the last two years. It was working but from yesterday, I am getting some kind of icon on my folder. I am not able to understand why I am getting this. I have my files inside that folder and…
user9437856
  • 2,360
  • 2
  • 33
  • 92
1
vote
1 answer

SublimeText3: How to disable the mouse gesture that behaves as increase_font_size?

I started using Sublime Text a few weeks ago and I find it irritating that the text zooms in or out when I'm trying to type something or navigate. This is because the base of my two thumbs come in contact with the touch pad. Moreover, there isn't a…
arunkumaraqm
  • 337
  • 1
  • 13
1
vote
1 answer

How to have javascript code on a different file then html?

I am constructing a calculator and this is my html for the calculator HTML
YLim
  • 255
  • 1
  • 8
1
vote
1 answer

How to log commands that are run through command palette in Sublime Text 3

I know that commands can be logged by going to the console View -> Show Console and typing sublime.log_commands(True) However, the commands that are run through the command palette are not logged, it just shows: command: show_overlay {"overlay":…
ag07
  • 369
  • 1
  • 4
  • 9
1
vote
1 answer

Auto-run a command on saving in Sublime Text

Is it possible to run eslint automatically when I save either a .js or .jsx file in Sublime Text? I'm using the ESLint sublime package right now but I have to manually run it each time using Cmd + Option + e. Thanks!
MarksCode
  • 8,074
  • 15
  • 64
  • 133
1
vote
1 answer

Fastest way to reference a relative file

Assume that you have a relative file reference (using JS for example): const db = require('../../models/index'); In large projects, it's cumbersome to locate the relative paths of necessary dependencies. Is there either a sublime text plugin or a…
1
vote
1 answer

Why does a red bar appear in my javascript code when working in sublime

I'm trying to change the text of a label in html to show the file uploaded to the input element that the label points to. I found this javascript code and changed it a little to fit my html. It's not breaking my page but it's not displaying the…
1
vote
2 answers

How to remove multiple spaces between words in Python, without the leading spaces

I'm writing a simple Sublime Text plugin to trim extra, unnecessary, spaces between words but without touching the leading spaces not to mess up Python formatting. I have: [spaces*******are********here]if****not***regions***and**default_to_all: and…
1
vote
1 answer

How to select the previous instance of selected text in Sublime Text 3d

I am using Sublime Text 3 on Windows. I can select the next instance of the currently selected text, using Ctrl+D. Is there keybinding for selecting and moving the cursor to the previous instance of the selected text? For example, a keybinding that…
1
vote
1 answer

How to match words in curly braces?

I want to replace some text in sublime. I have some text {{abcd dog cat}} and I want to make them become {abcd dog cat} I cannot directly replace {{ to { because some {{ is necessary in my text. I know using regular expression can achieve my…
Ice0cean
  • 133
  • 4
1 2 3
99
100