-
修改主题:
Apperance & Behavior -> Apperance -> UI Options -> Theme
-
代码自动(软)换行:
Setting ->Editor -> General -> Soft Wraps
-> 选择"Use soft wraps in editor", (新版本是"Soft-wrap files *", 添加需要自动换行的文件扩展名)
-
修改代码字体:
Setting ->Editor -> General -> Font
-
注释用斜线不在行头:
Setting ->Editor -> Code Style -> PHP -> Wrapping and Braces -> Keep when reformatting
-> 取消"Comment at first column"
以及:
Setting ->Editor -> Code Style -> PHP -> Code Generation -> Comment Code
-> 取消 “Line comment at first column”
同时:
Setting ->Editor -> Code Style -> HTML -> Code Generation
-> Comments 下取消"Line commment at first column" 和 “Block commment at first column”
-
代码自动完成的大小写区分取消:
Setting ->Editor -> General -> Code Completion
-> 取消 “Math case”
-
大括号不换行
Setting ->Editor -> Code Style -> PHP -> Wrapping and Braces -> Braces placement -> In class declaration 和 In function declaration
选择 End of line
-
EOL设置为unix格式:
Setting ->Editor -> Code Style -> General -> Line Separtor
选择 “Unix and macOS(\n)”
-
取消HTML属性的自动换行:
Setting -> Editor -> Code Style -> HTML -> Other -> Wrap attributes
设置为 “Do not wrap”, 并取消"Wrap text".
(那个"Hard wrap at"的默认值120在Editor -> Code Style -> Hard wrap at, 最大值是1000)
-
取消输入引号时的自动补充:
Setting ->Editor -> General -> Smart Keys
取消 “Surround selection on typeing quote or brace”
-
选中相同文字高亮:
Setting ->plugins
-> 搜索 BrowseWordAtCaret
安装,然后重启; 然后进入 Settings -> Editor -> General -> Appearance -> Browse Word At Caret
勾选。
如果想修改默认的颜色,在Settings -> Editor -> Colors & Font
或者 Color Scheme -> BrowseWordAtCaret
中进行修改,可以改成亮点的颜色。
-
else换行(不建议修改)
Setting ->Editor -> Code Style -> PHP
-> Warpping and Braces -> ‘if()’ statement -> 选中 “‘else’ on new line”
-
修改搜索结果只显示前100个(100+ matches)的问题:
顶部Help
菜单 ->Edit Custom VM Options, 添加一行-Dide.usages.page.size=500
就改成500了, 重启. (2019.3版本测试没问题)
2021.2 版本中新增了设置Settings -> Advanced Settings -> Maximum number of results to show in Find In Path/Show Usages preview
可以直接改.
-
调整/关闭 SQL 代码背景色