from Hacker News

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

by inSenCite on 7/6/24, 12:27 PM with 4 comments

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?

  • by ichik on 7/6/24, 1:18 PM

    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.

  • by skydhash on 7/6/24, 4:26 PM

    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).
  • by spikey_sanju on 7/7/24, 6:29 AM

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