Tips & Tricks

Double Shift to Search Everywhere

Read this post in other languages:

As a user of IntelliJ IDEA, you may often find yourself wanting to increase your productivity by limiting the use of your mouse in your daily work. 

With IntelliJ IDEA, you really only have to know a basic set of shortcuts, since you can use the Search Everywhere window to access anything you need. 

For example, you can search for shortcuts that you don’t remember, actions you rarely use in your work, or actions that don’t have shortcuts assigned to them. Search Everywhere can also help you access main menu actions, tool windows, and settings.

IntelliJ IDEA: how2pro banner

Press Shift twice to open the Search Everywhere window, and then just enter your query to search inside your project. By the way, you can include non-project items in your search if you’d like to see, for example, search results from external libraries.

When IntelliJ IDEA opens the Search Everywhere window, it conveniently shows you a list of recent files that you can access.

SE_recent_files

You can change the scope of your search by switching between tabs to view the results from classes, files, symbols, or actions.

SE_switch_tabs

You can access the main menu actions right from the Search Everywhere window by typing the name of the menu option in the search field. 

Let’s say, for example, that you work in distraction-free mode and want to exit IntelliJ IDEA. Type “exit” in the search field and hit Enter.

SE_access_main_menu

You can access any tool window by typing its name as your search query.

SE_access_tool_window

You can also browse a list of settings without leaving the working environment. Just type “/” before the query, and the Search Everywhere window will show you the groups of settings.

SE_settings_groups

You can enable or disable options in the settings without leaving the Search Everywhere window. Enter a name or use groups of settings to locate the option you want to toggle, select the option in the list of the search results, and use the ON/OFF control keys. By the way, you can achieve the same outcome with plugins if you type “/plugins “ in the search field – this will give you a list of plugins in the search results which you can enable or disable.

SE_settings_groups_options

Sometimes, the settings’ option you are looking for may have been moved to a different location. With the Search Everywhere window, you can keep track of those relocations since IntelliJ IDEA displays the paths to the listed options. Additionally, you can access those options right from the window.

SE_options_path

When you find an action that doesn’t have a shortcut assigned to it, you can assign your own right from the Search Everywhere window. Type the name of the action in the search field, press Alt + Enter, and enter the shortcut in the Keyboard Shortcut dialog.

SE_assign_shortcut_to_action

Search Everywhere can save you a lot of time, increase your productivity, and help you learn new shortcuts. All you need is to press Shift twice.

Happy Developing!

image description