Questions tagged [sublimetext4]

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 4 is the latest version of a multi-language, multi-platform code editor, developed by Jon Skinner and SublimeHQ. It is very fast, highly extensible and customizable, and has a Python API to allow plugins for augmented functionality.

Overview

Sublime Text 4 is the latest version of a multi-language, multi-platform code editor, developed by Jon Skinner and SublimeHQ. It is very fast, highly extensible and customizable, and has a Python API to allow plugins for augmented functionality.

New Features

  • Tab multi-select
  • Native support for Apple Silicon and Linux on ARM64 processors
  • Refreshed UI
  • Context-aware autocomplete
  • , and support
  • Improved syntax definitions
  • GPU rendering
  • Dual APIs, supporting (default) and . The API has been extended and improved considerably.
  • Fully compatible with
  • Safe mode (--safe-mode command line switch) to simulate a fresh install for troubleshooting
  • Improved input handling, extended key bindings
  • Added File → Print, which prints through a web browser. Edit → Copy as HTML available as well.

The full changelog is available on the downloads page.

Resources

119 questions
1
vote
0 answers

Prevent Sublime Text 4 from opening previous files ONLY when launching via file

I'm on Sublime Text Build 4143. The way I want my workflow is: If opening the application directly via Applications, then restore previously open files If opening via file from Finder, only open that one file and do not restore previously open…
Jason Robinson
  • 31,005
  • 19
  • 77
  • 131
1
vote
1 answer

how to get a empty space at the end of the code in Sublime Text?

In Sublime Text I don't have blank space at the end of the code and I'm sad because it's really cool. do you know if there is a way to get it naturally, without entering 15 empty lines at the end ? a lot of useless rows after the code cozy empty…
Nicolas D
  • 13
  • 2
1
vote
1 answer

Prevent Sublime Text sidebar from taking keyboard focus

I recently upgraded to Sublime Text 4. One change is that whenever I click in the sidebar, it takes over keyboard focus. After that I have to click back in an editor pane to give it focus again. As far as I can tell, Sublime Text 3 didn't do that…
munificent
  • 11,946
  • 2
  • 38
  • 55
1
vote
1 answer

Neovintageous: how to call from plugin

My goal is to reload the NeoVintageous config file, that is .neovintageousrc, from inside a Sublime Text plugin. The command should be something like view.run_command("neovintageous_reload_rc") but this does not work. Any help?
1
vote
0 answers

How can I change my Terminus theme when using Oh My ZSH and Powerlevel10K in Sublime Text 4?

I've setup iTerm2 with Oh My Zsh. I'm using the powerlevel10k theme. When I configured Terminus, it runs fine, but changing the theme in terminus settings has no impact. It's a a white font. I've tried to change the cmd to call the p10K.zsh, in the…
user20615653
1
vote
2 answers

code does not work in sublime text when using function with "return" statement

I'm new to python programming, and as a beginner I want to start by using a code editor, I choose sublime text 4 but I face this problem, So help me please ! This is the code : def return_string(your_string): if len(your_string) >= 4: …
1
vote
0 answers

Sublime text 4 curly bracket indentation problem

Sublime text 4 is giving weird indentation when pressing enter between curly braces for(int i=0;i<10;++i){ } In some already opened file it is working fine by indenting like this : for(int i=0;i<10;++i){ } I…
cheems
  • 164
  • 7
1
vote
1 answer

Anaconda's autocomplete function Sublime Text not working

I have installed the Anaconda plugin in Sublime Text Build 4126 and it doesn't work its autocomplete function. I don't know why. Anaconda's linting works indeed. Python version: 3.10 Could you help please to detect and fix the problem?
1
vote
1 answer

How can I avoid NameError from input() in Sublime Text 4, using SublimeREPL on Mac OS 12.1?

I followed the instructions on the following short video to allow Python scripts to be run in Sublime Text. https://www.youtube.com/watch?v=-d27eACbjnk Steps were: Install 'Package Control' Install 'SublimeREPL' Choose 'Tools > Build System > Build…
Gospel77
  • 133
  • 1
  • 7
1
vote
1 answer

In what cases should you install eslint globally?

I have 3 projects each in their own repository and folder. I use sublime to do my linting from the GUI. Sometimes if I want to auto fix files I will go to the command line and run eslint . --fix My configurations are getting a bit complicated as I…
user17791008
  • 247
  • 2
  • 12
1
vote
0 answers

Sublime Text 4 pressing Esc doesn't close the autocomplete box

I'm on a mac, with a new installation of Sublime Text 4, no settings tampered with and pressing the Esc key isn't closing the autocomplete box as it used to in sublime text 3. How can I fix this?
Ishan Srivastava
  • 1,129
  • 1
  • 11
  • 29
1
vote
1 answer

How to remove button in Sublime Text 4 from context menu?

I would like to remove button "Remove folder from Project" sometimes I accidentally click on this button and have to re-create the project. I think Sublime pretty flexible editor that allows to remove or add some features. Thank you for help.
Yura Kosyak
  • 401
  • 3
  • 16
1
vote
4 answers

Disable autocomplete on tab

After update from sublime text 3 autocomplete triggers on TAB and ENTER Its hard to use snippets like foreach in PHP foreach($mark as $mark => $mark) { $mark } In sublime text 3 after TAB you jump to next mark, but now autocomplete happens I…
Skywave
  • 111
  • 3
1
vote
1 answer

How to assign a string to a keybinding in Sublime Text 4?

Is there a way to print something with the given keybinding in Sublime Text 4? E. g. for the sake of R, I would like the alt+oem_minus and alt+- keybindings strokes to result in <-. I understand that for whatever I want to do, I can record a macro…
Lamha Llaw
  • 65
  • 4
1
vote
1 answer

Sublime Text: How do I add a snippet that can excute keyboard shortcuts

I wanted to have a snippet that automatically adds the time and date to the file.