简体   繁体   English

如何在WebStorm中自动缩进

[英]How to auto indent in WebStorm

I need to indent multiple files in WebStorm. 我需要缩进WebStorm中的多个文件。 Its option "Auto-indent" in the Code menu only indents current line. 在“ 代码”菜单中,其选项“自动缩进”仅缩进当前行。

How do I use it on multiple files like I can use " Reformat Code "? 如何在多个文件上使用它,例如可以使用“ 重新格式化代码 ”?

Select the folder you want to reformat the code for in the Project tool window. 在“项目”工具窗口中选择要重新格式化代码的文件夹。 Then select Code | Reformat Code 然后选择Code | Reformat Code Code | Reformat Code

This page explains it. 此页对此进行了说明。 https://www.jetbrains.com/help/idea/2016.1/reformatting-source-code.html https://www.jetbrains.com/help/idea/2016.1/reformatting-source-code.html 重新格式化代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM