To me, 2018 (the year I was/am off on maternity leave) was the year that VS Code really blew up in popularity.
So although I had switched to Atom from Sublime Text a year or two earlier, I decided to switch AGAINā¦ because no one is nearly as obsessed with Atom like they are for VS Code and since now Microsoft owns both editors, I might as well switch to the preferred child.
And since Iām not working at the moment and have a bit of time during baby naps to nerd out, I got to spend a lot of time researching and getting my setup just right.
I wasnāt totally sure about writing this blog post because it seems a bit frivolous and self-centered to write about my setup? Especially because thereās already a zillion similar posts out there already.
BUT I have decided to shut that inner voice of doubt down because:
- STFU mean self-talk
and
- I really enjoy reading other peopleās posts about their setups. I have read a LOT of them. So obviously there are people (like me) who DO enjoy reading this kind of thing!
First up: The icon
Iām not usually one to replace app icons, it just seems a bitā¦ extreme? Like it feels more pure to stick with how the vendor intended it to be. But I really didnāt like the existing icon and decided to break my usual rule š (actually, as you can see in the screenshot I went a bit crazy and also updated some of the Finder folders so I guess I am breaking all the rules these days.)
I ended up going with this icon by Lex Tang. It looks pretty good:
OK what about theme?
Iāve long been a fan of Tomorrow Night Eighties in all my editors, but after many years, I thought it was probably time to try something new. Ali Spittel mentioned Dracula andā¦ Yep, love it.
And extensions
Since Iām not coding a TON right now I actually donāt know exactly what will prove to be most useful, but I installed the ones that seem like they make the most sense, and from the limited use Iāve had with them so far, they have been great.
For writing copy, like I am right now
- :emojisense: ā Great for quickly inserting an emoji š I am fine with using the mac keyboard shortcut (
ā^space
) a lot of the time, but since I do also have some muscle memory from Slack and Github I liked the idea of having the colon syntax available to me too. (plus, is it just me or is the mac shortcut kind of buggy sometimes?)
- Code Spell Checker ā Sometimes I have typos. Itās nice having an editor that notifies you of typos.
For writing code
- ESLint ā A noābrainer if you use ESLint in your code to have your editor autoānotify you of transgressions.
- GitLens ā if you use Git for version control itās nice to have history and diffs displayed right in the editor. Some people LOVE this feature, Iāve always been slightly takeāitāorāleaveāit about it but it seems better to have it than not, overall.
- Path IntelliSense ā autocompletes filenames for you, which is especially great if you are working with large JS projects that require you to
import
from files.
- React PropTypes IntelliSense ā Autocomplete props when passing props around in React. Handy if you write React code, useless if you donāt š
- SASS IntelliSense ā I think most devs donāt use SASS syntax anymore, correct me if Iām wrong? I rarely see it in the wild these days! But at Flow we still do and I donāt think weāll be changing it any time soon, so itās nice to have this.
- SCSS IntelliSense ā for non-Flow projects I use SCSS most of the time, so need this too!
- VS Live Share ā I havenāt used this yet but I saw it recommended in another blog post (which one: I have forgotten š¢) and I liked the idea so much I decided to add it in hopes I could one day use it for pair programming.
- VS Code Vim ā I am not a hardcore vim user but I like having the shortcuts available to me sometimes. I turned off the setting to switch out of insertion mode on copy though as I found that irritating. As a non power-user of Vim I like being in insertion mode unless I explicitly
esc
out.
ā¤ļø