organizerkrot.blogg.se

Intellij enter vs shift enter
Intellij enter vs shift enter











  1. #Intellij enter vs shift enter software#
  2. #Intellij enter vs shift enter code#

If you want to change the default shortcuts, open the Settings / Preferences dialog, go to Keymap, then expand Plug-ins | Terminal and modify the following actions: If you want to disable this feature, click the gear icon in the Terminal tool window and clear the Run commands using IDE option.

#Intellij enter vs shift enter code#

For implementation examples, see the GitLogTerminalCustomCommandHandler and TerminalShellCommandHandler classes in the source code of IntelliJ IDEA Community Edition. You can use the API provided to implement support for more commands and tools. Try Ctrl + Shift + Enter or Cmd + Shift + Enter to run the highlighted commands in debug mode (use the Debug tool window instead of Run). Try out the commands that you use frequently and see if this feature helps you be more productive. This feature also works with most of the commands recognized by Run Anything (press Ctrl twice), such as mvn, gradle, rake, rails, and so on, depending on what plugins you have installed. In a similar manner, you can type the diff command with the names of files you want to compare, and when it is highlighted, press Ctrl + Enter or Cmd + Enter to open the diff viewer instead of printing the diff output to the terminal. In the example above, it will open the Log tab of the Git tool window and filter commits by authors with “dmitry” in their usernames. Instead of pressing Enter, which runs the command in the terminal, press Ctrl + Enter or Cmd + Enter to open the corresponding GUI tool.Type a supported command in the terminal and notice how it gets highlighted.This increases the discoverability of features and provides a handy way to open your favorite IntelliJ IDEA tools from the terminal. If you didn’t know such features existed in IntelliJ IDEA or you are just used to running them in the terminal, now the IDE will let you know you can view the results in the GUI. Another example is the Log tab in the Git tool window, which is based on the output of the git log command. Sometimes you don’t even realize that instead of running a command in the integrated terminal and reading console output, you can use the relevant IDE feature, like a tool window or a dialog that implements this functionality.įor example, the diff viewer actually runs the diff command in the system shell to produce results. Most of these tools run in the system shell under the hood.

intellij enter vs shift enter

#Intellij enter vs shift enter software#

IntelliJ IDEA integrates with many different tools used for software development.













Intellij enter vs shift enter