js-beautify for VS Code👍
Default Hot Key: Ctrl + Shift + B
But, I already used this key, so I customized the hot key.
My Hot Key: Ctrl + Alt(align) + B(by beautfiy)
Beautify javascript, JSON, CSS, Sass, and HTML in Visual Studio Code.
VS Code uses js-beautify internally, but it lacks the ability to modify the style you wish to use. This extension enables running js-beautify in VS Code, AND honouring any .jsbeautifyrc file in the open file's path tree to load your code styling. Run with F1 Beautify (to beautify a selection) or F1 Beautify file.
For help on the settings in the .jsbeautifyrc see Settings.md
How we determine what settings to use
- When not using a multi-root workspace:
- If there is a valid .jsbeautifyrc in the file's path tree, up to project root, these will be the only settings used.
- If an option is a file path or object of configuration specified in the user or workspace settings like this: "beautify.config" : "string|Object.<string,string|number|boolean>", these will be the only settings used. The file path is interpreted relative to the workspace's root folder.
- If there is a valid .jsbeautifyrc in the file's path tree, above project root, these will be the only settings used.
- If there is a valid .jsbeautifyrc in your home directory, these will be the only settings used.
- When using a multi-root workspace: Same as above, but the search ends at the nearest parent workspace root to the open file.
반응형
'코딩 | 개념 정리 > Visual Studio' 카테고리의 다른 글
VSCode 단축키 모음 (0) | 2022.03.19 |
---|---|
[Visual Studio] 비쥬얼 스튜디오 구(이전) 버전 다운로드 방법 (6) | 2021.10.15 |
[Visual Studio] 하나의 솔루션에서 여러 개의 프로젝트 만들기 (2) | 2021.09.08 |
Visual Studio Code 터미널 설정하기 (0) | 2021.07.15 |
Visual Studio 단축키 모음 (0) | 2021.02.28 |