My VS Code setup
Because feeling at home is important
These days, my editor of choice is, like many people, VS Code
Previously it was Sublime Text but a Python-based editor in a world where the most used language is Javascript and everyone and theirs mothers does web stuff - it doesn't work anymore. I'm glad you paved the way for the future Sublime. I'll always love you for all you did.
Ok! Now that the goodbyes are done, let's talk about my VS Code setup
Settings
Those are intentionally not complete, some of the settings I have in my full config files are for things I don't really use (such as Zen Mode or the Git support inside the editor), default settings that I redefine just to be exhaustive or things that are personal choices outside of the scope of this article (such as if I accept telemetry or not)
Visuals
My favorite font for coding these days is by far Iosevka. I find the default font weight a bit hard to read on my screen so I put it at 500. I use Fira Code (my previous font) as a fallback for computers where Iosevka is not installed. For both, ligatures are enabled - love those
A few random points:
- I disable the minimap. I don't find it to be useful in any way as I probably don't work on files big enough anyway.
- I put the sidebar on the right side, that way toggling it doesn't change the position of the code.
- I have rulers at 80 and 120 characters, an habit I took from my Python days. I find that it subconsciously helps me keep my lines shorter.
Usability
I have all the "do things on save" settings enabled, I don't want to care about formatting or organizing imports, I just want it to happen.
Extensions
I'll skip over a few classic here, such as Prettier and ESLint for formatting & linting JavaScript, general language-support extensions (ex: Astro, Rust.. etc), to focus on the ones that are a bit more general.
Todo Tree
Highlights and list every TODOs (and other tags) in your project. It's really satisfying to see the list of TODOs get smaller and smaller!
It's heavily configurable, notably you can add as many custom tags as you want. Personally, in addition to the default ones, I added a tag "NOTE" to list every parts that need explanation.
Insert Date String
Inserts the current date and time in the format of your choice. I use it to add the date to my comments, as I typically end my comments with - erika, 2023-11-12