IntelliJ IDEA中最有用的插件以减少错误是哪些?

huangapple go评论70阅读模式
英文:

What are the most useful Intellij IDEA plugins for reduce bugs?

问题

我使用IntelliJ IDE开发Spring Boot Web服务。我使用了一些插件,如SonarLint,这些插件对我非常有帮助。
哪些是用于改善代码和查找错误的最有用的IntelliJ IDEA插件?是否有其他减少错误的解决方案?

英文:

I am using intellij ide to develop spring boot web service. I use some plugins such as sonar lint that helped me so much.
What are the most useful Intellij IDEA plugins for improve code and find bugs? Is there any other solutions for reduce bugs?

答案1

得分: 1

以下是要翻译的内容:

我过去两年一直在使用Intellij IDEA Ultimate,开发前端和后端服务,并且我个人使用了以下插件:

  1. FindBugs-IDEA(静态字节码分析)。
  2. IdeaVim(因为我是一个真正使用vim的程序员:D)
  3. Lombok插件
  4. SonarLint(帮助检测和修复常见的代码质量问题)
  5. Spring助手(辅助开发Spring应用程序)
  6. Markdown支持(用于维护维基,MD页面)

你可以尝试这些插件。

英文:

Well I have been using Intellij IDEA Ultimate for the past 2 years and developing both front-end and back-end services and I personally used the following below plugins

  1. FindBugs-IDEA (static byte code analysis).
  2. IdeaVim (because I am a real programmer who uses vim IntelliJ IDEA中最有用的插件以减少错误是哪些? )
  3. Lombok plugin
  4. SonarLint (helps detect and fix common code quality issues)
  5. Spring Assistant (Assists in developing spring applications)
  6. Markdown support (to maintain the wiki, MD pages)

you can try these plugins.

答案2

得分: 1

我是一个完全沉迷于 IntelliJ IDEA 的 Java 开发者。过去,我使用了 NetBeans IDE(从版本 4.5 开始),并且在使用它的时候非常开心,但在大约 8 年前开始使用 IntelliJ IDEA 进行开发后,我就无法回到 NetBeans 了。我习惯使用 IntelliJ IDEA Community Edition(免费开源版本),发现它非常适合 Java 和 Scala 的开发,而且速度更快。在这篇文章中,我将介绍一些在日常编码中对我有帮助的 IntelliJ IDEA 插件:

  • Indent Rainbow 和 Rainbow Brackets

    Java 编程语言使用括号来定义代码块,在 Java 代码中有多个嵌套的代码块。随着函数式编程和响应式编程在 Java 世界中的流行,你的 Java 代码中将会有多个嵌套的代码块、缩进和括号。这两个插件可以帮助你更好地控制 Java 代码中的缩进和括号。Rainbow Brackets 插件会为你的代码着色,以便你可以通过颜色轻松找到匹配的括号。Indent Rainbow 插件会为代码的缩进着色,该插件会以红色显示没有正确缩进级别的行,非常有用。

  • Maven Helper

    如果你像我一样使用 IntelliJ IDEA Community Edition,并且想要以层次化方式查看你的 Maven 项目的依赖关系,并搜索或查找其中的冲突和循环依赖,那么Maven Helper 是一个非常适合你的工具。

  • BashSupport

    BashSupport 提供了一个几乎完整的开发环境,用于处理 Bash 脚本,但是自 IntelliJ IDEA 2019.2 版本开始,它已经附带了一个用于Shell脚本的插件,比 BashSupport 更轻量。附带的Shell脚本插件与BashSupport不兼容,你不能同时使用BashSupport和附带的Shell脚本插件,你需要禁用其中一个。一般来说,附带的Shell脚本插件足够用于基本的常规功能并提供更好的集成,但如果你需要更高级的功能,比如重命名重构、文档查找、检查等等,那么BashSupport 将是你的选择。还有一个新的付费 BashSupport Pro 插件正在积极开发中,将于 2020 年初推出,提供更高级的Shell脚本支持。

  • Lombok

    我不想详细介绍 Lombok 库的好处,但如果你不想在你的Java类中编写另一个getter或equals方法,并希望拥有一个功能完善的构建器,自动记录变量等等,只需在你的类中使用Lombok库,然后你需要安装这个插件以访问Lombok库生成的内容在IntelliJ IDEA中的内容。

  • Request mapper

    如果你使用 Spring MVC(Boot)、JAX-RS 或 Micronaut 来开发 Java 中的 REST API 或 Web 应用程序,使用这个插件可以快速查找和导航这些框架中的 URL 映射声明。按下 Ctrl(cmd)+ Shift +反斜杠键即可开始导航。

  • Json Parser

    当我使用监控和日志聚合工具如 ELK 或 Splunk 来检查分阶段或生产服务器中的某些内容时,我通常需要一个JSON解析器。为什么要使用在线服务在浏览器中搜索、格式化和验证JSON?在IDE中,Json Parser 插件使搜索、格式化和验证JSON变得更加容易,而且可以脱机使用。

  • String Manipulation 和 CamelCase

    CamelCase 插件功能有限,主要集中在不同大小写之间的切换,你可以通过按下 SHIFT + ALT + U 轻松切换CamelCase、camelCase、snake_case 和 SNAKE_CASE。

    String Manipulation 插件具有更多高级功能,提供文本操作的操作,如切换大小写、大写、小写、反转大小写、编码/解码、增加/减少、排序、对齐、过滤等等。

  • RegexpTester

    实际上,我没有发现这个插件非常有用,但对于在IDE内部测试正则表达式,它总比没有好。

  • Key Promoter X

    如果你想学习更多的IntelliJ IDEA快捷键,这个插件适合你。当你在IntelliJ IDEA内部的按钮上使用鼠标时,Key Promoter X 会在弹出窗口中显示你应该使用的键盘快捷键,而对于没有快捷键的按钮,Key Promoter X 会提示你直接创建一个快捷键。

  • Jenkins Control Plugin

    如果你的团队使用Jenkins进行CI和CD,这个插件会很有帮助,因为你不需要定期在浏览器中检查Jenkins首页。当然,这不是一个完美的插件,但总比没有好。

  • Extra Icons

    这个图标包为特殊文件提供了新的图标,如GitLab和Travis配置、package.json、shell脚本、lint配置等等许多文件类型。

总结

这是我最喜欢的IntelliJ IDEA插件列表,它们每天都让我更加高效。一些插件在你启动IntelliJ IDEA时会弹出弹窗或对话框,要求捐赠或类似的东西,

英文:

I am a completely IntelliJ IDEA addicted Java developer. In the past, I used NetBeans IDE (from version 4.5) and had a fun time with it but after start developing using IntelliJ IDEA (about 8 years ago) I could not go back to NetBeans. I am used to IntelliJ IDEA Community Edition (free and open-source version) and found it great (and faster) for Java and Scala development. In this post, I am going to introduce some useful IntelliJ IDEA plugins which help me in everyday coding:
Indent Rainbow and Rainbow Brackets

Java programming language uses brackets to define a block of code and there are several nested blocks in a Java program code. With the rise of the popularity of functional programming and also reactive programming in Java world, you will have several nested blocks, indentations, and brackets in your Java codes. These two plugin helps you to have better control over indentations and brackets in the Java codes. Rainbow Brackets plugin colors the brackets in your code so that you can find matching brackets easily by color. Indent Rainbow plugin colors indentations of the codes, this plugin shows you which lines don’t have proper indentation levels in red color and it is very useful.

Maven Helper

If you use IntelliJ IDEA Community Edition like me and want to see dependencies hierarchically of your Maven project and search or find conflicts and cyclic in it, Maven Helper is a very suitable tool for you.

BashSupport

BashSupport provides an almost complete development environment to work with Bash scripts but IntelliJ IDEA comes with a bundled plugin for shell scripts (from version 2019.2) which is lighter than BashSupport. bundled Shell Script plugin is not compatible with BashSupport and you could not use BashSupport and bundled Shell Script plugin simultaneously and should disable one of them. Generally, bundled Shell Script plugin is enough for basic routine functionality and provides better integration but if you need more advanced features like rename refactoring, documentation lookup, inspections, and … BashSupport will be your choice.

There will be a new, paid BashSupport Pro plugin that provides advanced support to work with Shell scripts. It’s still under active development and will be available in early 2020.

Lombok

I don’t want to say about the benefits of Lombok library but if you don’t want to write another getter or equals method in your Java class and want to have a fully-featured builder, Automate your logging variables, and much more with one annotation in your class, I suggest to use Lombok library and then you need to install this plugin to access generated things by Lombok library in IntelliJ IDEA!

Request mapper

If you are using Spring MVC (Boot), JAX-RS, or Micronaut to develope REST API or web application in Java, by using this plugin you can quickly find and navigate between URL mapping declarations in these frameworks. By pressing Ctrl (cmd) + Shift + Back slash you can start navigation.

Json Parser

I usually need a JSON parser when I use monitoring and log aggregator tools like ELK or Splunk to check something in a staging or production server. Why we should use an online service for searching, formatting and validating JSON in browser? Is it safe for production server logs? Json Parser plugin makes searching, formatting and validating JSON much easier inside IDE and offline.

String Manipulation and CamelCase

CamelCase plugin has limited functionality and concentrates on switching between cases and you can switch easily between CamelCase, camelCase, snake_case, and SNAKE_CASE. by pressing SHIFT + ALT + U.

String Manipulation plugin has more advanced features and provides actions for text manipulation like Switch cases, Capitalize, To lower case, Invert case, Encode/Decode, Increment/Decrement, Sort, Align, Filter and …

RegexpTester

Actually I haven’t found this plugin very handy But it is better than nothing for testing Regular Expression inside the IDE.

Key Promoter X

If you want to learn more IntelliJ IDEA shortcuts this plugin is for you. When you use the mouse on a button inside the IntelliJ IDEA, the Key Promoter X shows you the keyboard shortcut that you should have used instead in a popup and also for buttons that don’t have a shortcut, the Key Promoter X prompts you with the possibility to directly create one.

Jenkins Control Plugin

If your team uses Jenkins for CI and CD this plugin will be helpful, because you don’t need to regularly check Jenkins home page in the browser. Of course, this is not a perfect plugin but better than nothing.

Extra Icons

This icon pack provides new icons for special files such as GitLab and Travis configuration, package.json, shell script, lint config, and many more file types.

Conclusion

This is my favorite list of IntelliJ IDEA plugins which make me more productive every day. Some plugins show popup or dialog when you start the IntelliJ IDEA and ask for donations or something like this that is very annoying for me but prefer to ignore then instead of removing those plugins.

huangapple
  • 本文由 发表于 2020年8月9日 14:14:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/63323079.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定