Home > php教程 > PHP开发 > How to format js code in phpstorm

How to format js code in phpstorm

PHPz
Release: 2016-12-29 17:08:04
Original
9310 people have browsed it

PhpStorm is a lightweight and convenient PHP IDE designed to provide user efficiency, deeply understand the user's coding, provide intelligent code completion, fast navigation and instant error checking.

How phpstorm automatically formats JS code:

Select Code->Reformat Code in turn,

The shortcut key under mac is option+commend +l

The shortcut key under win is ctrl+alt+l

After opening, it is as shown below:

How to format js code in phpstorm

It can be done The operations are:

1, you can choose to automatically format the code of the currently opened file

2, to automatically format the selected code

3, Automatically format the code for all files in a directory

The above is an introduction to the method of automatically formatting JS code with phpstorm. For more related tutorials, please focus on the PHP Chinese website!


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template