phpstorm中找到

Preferences(Settings) > Editor > General > Appearance >"Show hard wrap guide (configured in code style options)"

 

phpstorm中找不到"Show hard wrap guide (configured in code style options)"那就找下面这个,可能版本不一样:

Preferences(Settings) > Editor > General > Appearance >  "Show right margin (configured in code style options)"

然后勾选。

设置竖线在第几个字符,比如第80字符

Preferences(Settings) > Editor > General > Code Style > Default Option > Rright margin(columns)  设置成 80

Logo

一站式 AI 云服务平台

更多推荐