IDEA/WEBSTORM常用的插件及配置

您所在的位置:网站首页 idea换语言 IDEA/WEBSTORM常用的插件及配置

IDEA/WEBSTORM常用的插件及配置

2023-07-01 18:40| 来源: 网络整理| 查看: 265

1.Chinese (Simplified) Language Pack / 中文语言包

        中文语言包将为您的 IntelliJ IDEA, AppCode, CLion, DataGrip, GoLand, PyCharm, PhpStorm, RubyMine, 和WebStorm 带来完全中文化的界面。

        下载后直接重启就好。

2.EasyCode

        基于IntelliJ IDEA开发的代码生成插件。可直接导入。

        

3.Save Actions

        代码格式化工具。

设置详解 General 基本设置

Activate save actions on save(before saving each file,performs the configured actions below)保存时自动格式化

Activate save actions on shortcut使用快捷键保存时自动格式化

Activate save actions on batch(Code>Save Actions>Execute on multiple files)保存时批量格式化

No action if compile errors (applied per file)如果编译错误则不执行任何操作

Formatting Actions 格式化触发设置

Optimize imports优化导入(没有用到的类自动删去import,这个一般要勾选)

Reformat file重新格式化文件(只要保存文件就会自动格式化)

Reformat only change code仅仅当代码变化时重新格式化 以上两个设置是互斥的,意思是,要么代码变化时候触发,要么文件变化时触发

Rerrange fields and methods(configured in “File>Setting>Editor>Code Style>(…)>Arragement”)重新调整字段和方法的范围

Build Actions build设置

[experimental] Compile files (using "Build > Build Project")编译文件

[experimental] Reload files in running debugger (using "Run > Reload Changed Classes")在运行的调试器中重新加载文件

[experimental] Execute an action (using quick lists at "File > Settings > Appearance & Behavior > Quick Lists")执行操作

Java Inspection and Quick Fix 具体格式化设置

Add final modifier to field给字段添加final修饰符

Add final modifier to local variable or parameter向局部变量或参数添加final修饰符

Add final modifier to local variable or parameter except if it is implicit向非隐式的局部变量或参数添加final修饰符

Add static modifier to methods给方法添加static修饰符

Add this to field access字段的使用加上“this”指针

Add this to method access方法使用加上this

Add class qualifier to static member access静态成员访问添加类限定符

Add class qualifier to static member access outside declaring class声明类外的静态成员访问添加类限定符

Add missing @Override annotions添加漏写的@Override注解

Add blocks to if/while/for statements给if/while/for语句添加大括号

Add a serialVersionUID field for Serialzable classes为Serializable类添加serialVersionUID字段

Remove blocks from if/while/for statements给if/while/for语句移除大括号

Remove unnessary this to field and method给字段或者方法去掉不必要的“this”

Remove final from private method私有方法去掉final关键字

Remove unnecessary final to local variable or parameter删除不必要的final到局部变量或参数

Remove explicit generic type for diamond删除显式泛型类型的尖括号

Remove unused suppress warning annotation移除没用的Suppress警告

Remove unnecessary semicolon删除不必要的分号

Change visibility of field or method to lower access更改字段或方法的可见性以降低访问权限

4.SQL Params Setter

        此插件可以将控制台中sql打印的内容选中:

        ==> Preparing: select * from table where name = ?         ==> Parameters: Tom(String)

        通过右键菜单中的"SQL params Setter"将结果复制成"select * from table where name = 'Tom'"。

附加:编译器常见的设置 1.更换主题和背景图片

2. 关闭单行显示选项卡

 3.启动字体连写

 



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3