当前位置:网站首页>PhpStrom代码格式化设置
PhpStrom代码格式化设置
2022-06-24 08:08:00 【BigChen_up】
代码格式化快捷键: CTRL+ALT+L
- 花括号在同一行显示 如:
function foo () {
}
- 变量按照等号 = 对齐
- 数组键值对按 => 对齐
格式化代码设置:
点击File/Settings进入设置页面:
设置Code Style 实现数组内键值对对齐
勾选:Editor/Code Style/PHP/Wrapping and Braces / Align key-value pairs
勾选前:
勾选后
设置Code Style 实现等号对齐
勾选:Editor/Code Style/PHP/Wrapping and Braces / Align consecutive assignments
勾选前:

勾选后:

设置Code Style 实现花括号同行显示
勾选:Editor/Code Style/PHP/Wrapping and Braces / Braces placement 下有命名空间、函数等花括号设置,如果想要同行显示 都可以设置成 End of line 即可
勾选前:

勾选后:

边栏推荐
- Recommendation - Secret of curiosity: how many dancing angels can stand on the tip of a needle?
- threejs辉光通道01(UnrealBloomPass && layers)
- 普通人没有学历,自学编程可以月入过万吗?
- MySQL - SQL statement
- 4274. suffix expression
- The list of open source summer winners has been publicized, and the field of basic software has become a hot application this year
- P6117-[JOI 2019 Final]コイン集め【贪心】
- Zero foundation self-study SQL course | sub query
- Yolox backbone -- implementation of cspparknet
- Pytoch read data set (two modes: typical data set and user-defined data set)
猜你喜欢

Squid代理服务器应用

Spark - LeftOuterJoin 结果条数与左表条数不一致
![[ES6 breakthrough] promise is comparable to native custom encapsulation (10000 words)](/img/b3/b156d75c7b4f03580c449f8499cd74.png)
[ES6 breakthrough] promise is comparable to native custom encapsulation (10000 words)
![[redis realize Secondary killing Business ①] Overview of Secondary killing Process | Basic Business Realization](/img/a3/9a50e83ece43904a3a622dcdb05b3c.png)
[redis realize Secondary killing Business ①] Overview of Secondary killing Process | Basic Business Realization

Yolox backbone -- implementation of cspparknet

Huawei Router: GRE Technology

浮点数表示法(总结自CS61C和CMU CSAPP)

Zero foundation self-study SQL course | sub query
![The printed object is [object object]. Solution](/img/fc/9199e26b827a1c6304fcd250f2301e.png)
The printed object is [object object]. Solution

eBanb B1手环刷固件异常中断处理
随机推荐
Groovy通过withCredentials获取Jenkins凭据
Essay - Reflection
What do you mean by waiting for insurance records? Where should I go for filing?
Installation of sophus package in slam14 lecture
Leetcode -- wrong set
关于 GIN 的路由树
LeetCode之最长公共前缀
Qingcloud based R & D cloud solution for geographic information enterprises
普通人没有学历,自学编程可以月入过万吗?
Depens:*** but it is not going to be installed
Data middle office: middle office architecture and overview
零基础自学SQL课程 | SQL语句语法顺序与执行顺序
Time series data augmentation for deep learning: paper reading of a survey
Framework tool class obtained by chance for self use
Data middle office: middle office practice and summary
Scheme of alcohol concentration tester based on single chip microcomputer
2021-05-20computed and watch applications and differences
牛客网 字符串变形
Every (), map (), forearch () methods. There are objects in the array
十二、所有功能实现效果演示