IntelliJ IDEA 15 EAP Adds On-the-Fly Code Duplicates Detection

转载 2016年04月22日 15:57:01

It’s been a while since we added the Analyze → Locate Duplicates feature. If you’ve had a chance to use it, you know how helpful it is: by eliminating duplicates in your code, you make it more concise and stable. If you’ve never used it, you definitely should; it’s truly surprising how many duplicates an average codebase usually contains.

The fresh IntelliJ IDEA 15 EAP build released today takes the duplicates analysis to an entirely new level by allowing you to spot them on-the-fly. Now, if you stumble upon an existing duplicate, or somehow create one either by writing or pasting code, you will know it instantly:


The analysis comes with quick-fixes, so you can navigate to duplicates or have them shown in a tool window:


The new inspection is called Duplicated Code and is enabled by default. To toggle it, go toSettings → Editor → Inspections. And, of course, you can run it on the entire project (or a custom scope) any time via Run Inspection by Name.just found the setting, it’s in File –>Settings –> Editor –> Inspections Once the Inspections menu opens, it’s under General –> Duplicated Code

Note that this feature is currently available only for Java. As the work is still in progress, rare false positives are possible.  Don’t forget to report them as well as any other bugs to our tracker.

You’re welcome to download IntelliJ IDEA 15 EAP right away, give this new feature a try, and share your feedback.

Among other enhancements, you’ll find fixes for:

  • Big and blurry fonts and icons in the Editor on Linux
  • Not working Terminal on Windows 10

Develop with Pleasure!


IntelliJ IDEA 15 汉化包

  • 2016年10月13日 09:31
  • 15.67MB
  • 下载

使用Intellij idea15开发SpringMvc遇到的问题

跟着网上的教程使用Intellij IDEA开发SpringMVC一步步做的,搭了一个小程序,一直还是不叫顺利的。 但是到最后运行时提示错误,如下 org.springframework.bean...

IntelliJ IDEA15 简要使用手册

jetbrains官网下载IDEA15 ##我们在浏览器输入网址。选择相应的系统版本,下载最新版本的IDEA15,Windows系统双击安装文件,根...

图文详解 IntelliJ IDEA 15 创建普通 Java Web 项目

第 1 部分:新建一个 Java Web Application 项目 File -> New -> Project…,请选择 Java EE 这个模块下的 Web Application ,我们还...

Intellij Idea15 快捷键设置大全


IntelliJ IDEA 15 破解方法

由于idea 15版本更换了注册方式,只能通过联网激活,所以现在不能通过简单的通用注册码进行离线注册了, 虽然可以继续用14版本,但是有新版本却无法尝试让强迫症也是异常抓狂。 通过度娘我找到了一个...

IntelliJ IDEA15如何配置tomcat

1)配置tomcat应用服务器  File->Settings...  Build,Execution,Deployment ->Application Servers  点击"+"号,选择...

Intellij Idea 15中开发Maven+osgi项目(Apache felix环境)

1.Intellij Idea创建Maven项目 利用maven模板快速创建maven项目,如图操作,填写g(groupid)a(artifactid)v(version)。 maven ho...

intellij idea15 Java web项目部署(非maven)

然后一路Next,可以把ueditor的钩去掉,再一路next,直到finish。部署: 1:2:3:4:在web-info下建一个classes,然后选择到该目录 5 如上图所示,默认把项目中...

IntelliJ IDEA 15 创建并部署maven项目

原文:IntelliJ IDEA 15 创建maven项目 说明 创建Maven项目的方式:手工创建好处:参考IntelliJ IDEA 14 创建maven项目二(此文章描述了用此方式创建Mav...
  • xiaojis
  • xiaojis
  • 2017年07月16日 15:57
  • 181
您举报文章:IntelliJ IDEA 15 EAP Adds On-the-Fly Code Duplicates Detection