IntelliJ IDEA 4 新特性 之 On-the-Fly Code Analysis(动态代码分析)

IntelliJ IDEA 提供了智能错误高亮、JavaDoc 错误检查、废弃符号检测等功能,帮助开发者在编写代码时即时发现和修复问题。通过高亮未使用的导入和声明,提供 Import 助手自动插入导入语句,以及意图识别等,极大地提升了编码效率和代码质量。
摘要由CSDN通过智能技术生成

Intelligent error highlighting(智能突出显示错误)

All common syntax errors, as well as all other errors that would be detected during compilation, are highlighted in the source code so you do not need to compile your code in order to find all your mistakes. Each error is highlighted in the editor and has the corresponding red link on the right gutter area for easy navigation to the erroneous places, which is especially useful when working with large files.

所有常见的语法错误以及其他一些可以被发现的编辑错误,都会在源代码里被突出显示。这意味着,你不用编译程序就可以发现你所有的错误。错误突出会用红色的波浪下划线标示,你可以轻易的找到它,这个功能在大的源文件编辑时尤为突出。


JavaDoc error highlighting(JavaDoc错误突出)

IDEA knows general javadoc rules, such as structure and syntax, and will detect any common inconsistencies found in your javadoc comments, e.g. wrong parameter references, return attributes in the field or void method comments, etc.
Having found an unknown javadoc tag, IDEA will suggests that you add this tag to the known tags list, so that you never get an error or warning indications about it.

IDEA晓得一般的JavaDoc一些关于结构和语法的规则,而且会发现一些在你的JavaDoc中相矛盾的地方,比如,不一致的参数申明,返回局部变量或没有返回值方法的注释等等。当发现一个未知的JavaDoc Tag 时,IDEA会提醒你将这个Tag加入到已知Tag列表中,这样就再也看不到关于这个Tag的错误和警告提示了。

<
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值