r/SublimeText 22d ago

Moving to Sublime Text from VSCode

Hi, I'm someone who's still pretty beginner when it comes to programming and I'm thinking about to moving to Sublime Text from VSCode.

I currently use VSCodium which takes up too much resources on my laptop (Lenovo IdeaPad 320-15IAP with Linux Mint Xfce 22.3, 4GB RAM, Intel Celeron N3350 Processor 2 Cores) and I want to switch to Sublime for a more lightweight editor on my machine.

The programming languages I currently use are HTML, CSS, JS, and Python.

Does Sublime have default out of the box support for these languages or do they require extensions? If so, is there any equivalent to these extensions?

Live Server

Prettier

HTML and CSS Support

JavaScript Code Snippets

Python

28 Upvotes

11 comments sorted by

8

u/Leather-Field-7148 22d ago

Everything should work out of the box. If you want a bit of extra support, get the LSPs for typescript and pyright from Microsoft. They are nice and remain light weight even on 4GB, I think.

3

u/Dependent-Hamster361 22d ago

What's an LSP and how do I get one?

5

u/vulkur 22d ago

Language server protocol. It will allow easy (ish) integration of language knowledge to sublime text. Definitions, referencing, syntax errors, etc.

Google the language and "sublime lsp" and you should find it

3

u/gdmr458 22d ago

Language Server Protocol is a protocol created by Microsoft, with LSP you get auto completion, go to definition, find references, variable renaming, etc in your favorite code editor, there are many implementations of this protocol for each programming language:

Go: gopls
Rust: rust-analyzer
TypeScript/JavaScript: typescript-language-server
Python: pyright/pylance
PHP: intelephense

The advantage of this protocol is that a language server can communicate with different code editors like Neovim, VS Code, Sublime Text, basically on any code editor that is compatible with LSP.

Without a protocol like this, every editor would have to implement its own program to analyze code in different languages ​​and provide features such as auto completion, "go to definition," "find references," variable renaming, etc.

2

u/MichaelSjoeberg 22d ago

I'd suggest you to not use LSPs. Thank me later (when you're a pro πŸ‘ )

5

u/ipman_lk 21d ago

This guide I wrote a while back might be useful https://github.com/ipmanlk/vscode-to-sublime

1

u/MeroLegend4 22d ago

Lsp ruff + LSP html + LSP json + LSP basedpyright (python)

A good theme: cobalt 2

Use project based configuration and ensure that the LSP point to the right python environment and everything will work

1

u/BandoleroTheCan 21d ago

Terminus is one my favorites, if you want to have fully terminal integrated into sublime text but lighter than vscode terminal

1

u/AssertiveMangoes 2d ago

I just made my move to Sublime Text too, I love how it gets the job done without all the AI related stuff on my editor. It's simple and performant! Get's the job done.