If you see a highlighted command in the Terminal, do not execute it right away. Instead, press ⌘↩ to activate the corresponding IDE feature.

Smart command execution

For example, try git log to view the Log tab of the Git tool window or diff with the names of files to open them in the diff viewer.