简体   繁体   中英

Is there a way to search only in files that have been changed in IntelliJ IDEA?

Is there a way to search for a string in files that have changed? I want to search for the comments I've added before I commit them, but I only know how to search for comments in every file of my project.

Current accepted answer is outdated, this is how you currently search only in your changed files: (don't miss that you should scroll down, the scrollbar is hidden when it's still)

在此处输入图片说明

Searching changed files is an option in the "Find in Path" function.

In the scope of your find, select Custom, then use the dropdown to select Changed Files.

在此输入图像描述

As of Intellij 2022.2.4 the option is located in the "Find in Files dialog" (at least on MacOS). 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM