DEV Community

loading...

VS Code: Built-in Formatter for .js / .ts / .json / .html

Heddi Nabbisen
An ICT designer/developer and a security monk with "a cool brain and a warm heart". OpenBSD/Rust etc. Interested in social issues and relationships. Founder of Scqr Inc.
・1 min read

As Visual Studio Code says in its website:

VS Code has has default formatters for JavaScript, TypeScript, JSON, and HTML.

the shorcut key:

Ctrl + Shift + "I"

brings formatted text. Like this :)

vscode formatter

Well, another one to format selected text is:

Ctrl + "K" then Ctrl + "F"

Discussion (0)