Ask HN: Share your VSCode layouts, tips, and hacks

4 points by inSenCite a year ago

I primarily use VSCode for my development. Outside of nested windows, some basic plugins, and memorizing a few hotkeys I feel like I'm not taking full advantage of what it has to offer.

Do you have any favorite layouts, plugins, tips, etc. that make your dev work more efficient?

ichik a year ago

This is an advice not just for VSCode, but for any editor essentially. If you use a file explorer side panel and you tend to toggle it on and off, set it to appear on the right side. This way it doesn't cause your main code view to jump around when you do it.

One more advice is installing vim mode extension and sticking with it for a few weeks. It takes some getting used to, but it is worth it.

  • skydhash a year ago

    A better way is to learn the “Goto file” command for your editor, instead of a file explorer. A file explorer is required to get a feel of the codebase layout, and to do file operations. But for navigation, search is quicker. And if you can setup symbol search (when there’s no intellisense), it’s worth it.

skydhash a year ago

I’ve not used VSCode that much, but I’ve used other editors and IDEs (currently emacs) and the most important thing (pretty obvious) is to minimize leaving the editor. That means bring out as much tooling as you can to it. Learn how to create extensions, and then try to create some to fit your current workflows.

A few features I usually want are:

  - A terminal if it’s not a TUI editor
  - File search (constrained to the project workspace), fuzzy or substring based.
  - Code Formatter
  - Spellcheck for comments
  - VCS integration. For the current file and for the project as a whole
  - Launch System (compile, packaging, testing, servers,…)
I can drop some of this requirement if I can get a tiling window manager and a few terminals. What IDEs offers in extra is better understanding of the code and project’s framework (spring, android, .Net,… with their long names).
spikey_sanju a year ago

I use “Advance New File“ extension to create files quickly with shortcuts. It's a lifesaver for nested folders.