Hacker News new | past | comments | ask | show | jobs | submit login
VS Code extensions for web development in 2022 (creativedesignsguru.com)
56 points by scottc on Jan 18, 2022 | hide | past | favorite | 29 comments



In addition to this list, for those doing node monorepos in 2022, the extensions that I think you must use are:

  - Github copilot - like autocomplete on steroids.
  - peacock - change the workspace color - helps reduce mental load when working on different projects.
  - tag autorename - this should be built into vscode, saves a bunch of keystrokes
  - snippets - this is a category of extension. Find whichever snippet lib is out there for your stack.


Tag Auto Rename is built in, enable it with: "editor.linkedEditing": true https://www.roboleary.net/vscode/2020/08/05/dont-need-extens...


> peacock - change the workspace color

I was looking for this exact thing the other day. Thanks for the tip!


Although that plugin seems trivial, for me, when working with multiple code repos, it really does help to organize thoughts quickly. I get multiple interruptions daily and being able to quickly bounce between repos, using visual cues, helps alleviate context interruptions.


One of my most used VSCode extensions at the moment is "Fix JSON". It fixes problems in JSON by running the broken JSON through jsonic. If you ever need to take a JS object dump (from an error stack trace, or a Redux state dump, etc) and turn it in to well formatted JSON it's very useful.


Because of issues like this, I find it absurd people use out-of-the-box JSON for human readable/writeable configuration. Issues with straight quotation marks, commas, brackets, and other stuff, and to top it off, there's no types so you often get terrible feedback on the configuration and every application needs to do similar marshaling to deal with it.


An increasing amount of extensions phone home parts of your code, many of which do not disclose it anywhere, some performing tasks so mundane you wouldn't ever have considered a remote server would be taking care of it.

Installing something like Copilot could have massive legal consequences if you're working under an NDA, with protected customer data, any proprietary code that isn't yours, etc. Something to keep in mind.


One of these at least is a native feature of vscode now (rainbow brackets) so I’d consider this post to be of low quality. If you ran even half of these last it’d really slow vscode down too.



I do consider this post low quality too, but it's rainbow indent, not brackets, which seems rather neat.


VSCode thread, a great opportunity to ask, how does one deal with seemingly one of the worst "(" ")" indentation rules in a history of editors? E.g.

  h = React.createElement
  h("div",
    h("label",
      h("input",
    )
  )
Reindents into:

  h = React.createElement
  h("div",
  h("label",
  h("input",
  )
  )
It only happens with (), but {} [] work fine. Couldn't find any extension, neither wrap my head around indentationRules.


I think eslint --fix does the right thing by default


Thanks, I'll look into that!


Prettier?


If you mean "install prettier, set it as a default formatter", then it doesn't. I tried all shallow methods, then all deep ones I was able to comprehend. Indentation rules are different from formatting, and default prettier settings mess it up completely into argument-per-line if it's a big hierarchy (which it usually is). Hyperscript readability highly depends on how you format it.

Fun part is, neovim plugin reindents it correctly with =.


I've not heard Hyperscript in a while. While I detest JSX, with Hyperscript's bad ergonomics and indentation issues you have, why use JavaScript? There's a plethora of better options that compile to the JS target if you want markup as function that improves the ergonomics and likely a better experience. Heck even CoffeeScript does a better job at this.


It doesn't feel right to me to switch languages because of a wrong editor behavior. Also, I'm already using typescript. Hyperscript is just an example, e.g. long lists also have this issue:

  foo(bar, baz, ........
  quux)
I'd agree if you told that it probably begs for a refactoring into named arguments, but it isn't an excuse to mess with indentation. Virtually every other editor out there would indent quux line, if it at all has indentation concept built in. Even neovim vscode plugin "knows" that.


VS Code is pretty cool, and when I use it -- I have it open right now --, I mostly enjoy it.

But I'm very concerned about the security of the extensions. They are so great, they are what makes VS Code the great tool that it is, but I fear that it will soon have the same problems npm has.

Are there any kind of protections in place which prevent an extension developer to sell his extension or he/she itself go rouge and siphon out the code being edited, or the entire project being worked on, or even install malware on the machine?


This list is shorter than I thought. Some of mine:

- Bookmarks - cycle through anywhere in a file or a project, or see/navigate a complete list

- TODO Highlight - highlight any regex (e.g. TODO.*, NOTE, DONE)

- Highlight - more enhanced highlighting (e.g. me highlighting full //---… lines with bg and border, like a very visible section)

- Markdown Preview Enhanced

- Subtle Match Brackets - much better pair highlighter (may be too colorful by default, just tune it accordingly)

- VsCode NDJson - file type for ndjson/jsonl files

- TabOut - tab your way out of auto-inserted brackets and quotes


I've created a set of VS Code extension packs a while ago to make installing those useful extensions easier: https://dsebastien.net/blog/2019-11-24-vs-code-extension-pac...


This is a great list, thanks for this. Many of these I use, but glad to see REST client, which I didn't know about. Have been looking for a replacement for Postman since they went off the "enterprise" deep end. I mean, I basically want a slightly better UI for curl, not 60 levels of "project management" features to make an HTTP call.


If you want a Postman replacement, I recommend Insomnia. There's a free app! And it can import Postman collections, so you aren't totally starting from scratch.

https://insomnia.rest/


For REST calls, I find Thunder Client way better.

I find that I can almost replace Postman completely with this.

https://marketplace.visualstudio.com/items?itemName=rangav.v...


We're in a VS Code thread, but the Jetbrains REST client (Part of e.g. Webstorm) is absolutely terrific. You can easily cut and paste from requests or responses just as in a text editor - because that is what it is.

As a VIM user (IdeaVIM in the Jetbrains editors), this is even easier, because text editing (as opposed to writing) is where VIM shines.


    - Filter lines
    - Align by RegEx
    - Excel to Markdown table
    - Gistpad
    - Markdown all in one
    - Markdown PDF
    - Project Manager
    - Sort
    - Spell Right
    - Thunderbolt client
    - Todo Tree


How about atom? I can share some:

  - atom-easy-jsdoc
  - atom-live-server
  - atom-typescript
  - atom-ide-deno
  - atom-ide-javascript
For full IDE-like experience, I recommend these as well:

  - linter
  - linter-ui-default
  - atom-ide-base
  - atom-ide-code-format 
  - atom-ide-datatip 
  - atom-ide-base
  - atom-ide-debugger-node
  - atom-ide-definitions
  - atom-ide-deno
  - atom-ide-hyperclick # Or hyperclick by facebook-atom
  - atom-ide-javascript
  - atom-ide-outline
  - atom-ide-ui # don't forget to turn off diagnose in setting. It conflict with linter


Why do people use both prettier and eslint when eslint has auto-formatting built in?


Prettier is prettier. Usually, they use it as an extension to eslint.


> Prettier is prettier

What do you mean? Are you saying that eslint cannot be configured to format the same way?




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: