admin管理员组文章数量:1356834
I'm currently giving Visual Studio Code a try. Overall I like the user experience however I can't find some of the things I'm very much used to, in sublime (with the help of extensions.)
One of them is beautify code (or tidy up) - is there any way to do this for JavaScript in Visual Studio Code?
Any help is appreciated.
I'm currently giving Visual Studio Code a try. Overall I like the user experience however I can't find some of the things I'm very much used to, in sublime (with the help of extensions.)
One of them is beautify code (or tidy up) - is there any way to do this for JavaScript in Visual Studio Code?
Any help is appreciated.
Share Improve this question edited Aug 8, 2018 at 22:15 JasonMArcher 15k22 gold badges59 silver badges53 bronze badges asked Aug 16, 2015 at 18:12 MiaMia 6,54113 gold badges53 silver badges84 bronze badges2 Answers
Reset to default 6If you want to beautify the code, you can just press
Ctrl+Shift+P and type format code
or press Alt+Shift+F
It correctly indents my code so it seems like that is what you are looking for, if not you might want to give an example.
You can use the shortcuts to beautify the code in Visual Studio Code:
- On Windows: Shift + Alt + F
- On Mac: Shift + Option + F
- On Ubuntu: Ctrl + Shift + I
As per the Programming language (PHP, HTML, JavaScript, ASP, JSP, etc.) it will ask you to install a package, after installation you can use above shortcuts.
本文标签: BeautiflyTidy (Javascript) in Visual Studio CodeStack Overflow
版权声明:本文标题:BeautiflyTidy (Javascript) in Visual Studio Code - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743975716a2570870.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论