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.
View changes history for a file or selectionThe change history for a file is displayed in the dedicated History tab of the Version Control tool window Alt+9 . The change history for a selection of code is displayed in a separate window, in the form of the differences viewer.
Find the search string in a project In the search field, type your search string. Alternatively, in the editor, highlight the string you want to find and press Ctrl+Shift+F . IntelliJ IDEA places the highlighted string into the search field. To see a list of your previous searches, press Alt+Down .
From the main menu, choose VCS | Update Project or press Ctrl+T . The Update Project dialog opens. Select the update type (this strategy will be applied to all roots that are under Git version control): Merge the incoming changes into the current branch: select this option to perform merge during the update.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With