как поменять терминал в intellij idea windows

Terminal

IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Open the Terminal tool window

By default, the terminal emulator runs with the current directory set to the root directory of the current project. For information about changing the default start directory, see Configure the terminal emulator.

Alternatively, you can right-click any file (for example, in the Project tool window or any open tab) and select Open in Terminal from the context menu to open the Terminal tool window with a new session in the directory of that file.

Start a new session

как поменять терминал в intellij idea windows. terminal tool window. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-terminal tool window. картинка как поменять терминал в intellij idea windows. картинка terminal tool window. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

To run multiple sessions inside a tab, right-click the tab and select Split Vertically or Split Horizontally in the context menu.

The Terminal saves tabs and sessions when you close the project or IntelliJ IDEA. It preserves tab names, the current working directory, and even the shell history.

Press Alt+Right and Alt+Left to switch between active tabs. Alternatively, you can press Alt+Down to see the list of all terminal tabs.

To rename a tab, right-click the tab and select Rename Session from the context menu.

Configure the terminal emulator

Project Settings

These settings affect the terminal only for the current project:

Start directorySpecify the working directory where every new shell session should start. By default, it starts in the root directory of the current project.
Environment variablesSpecify custom environment variables for every new shell session.

Application Settings

These settings affect the terminal in any project that you open with the current IntelliJ IDEA instance.

Specify the shell that will run by default. IntelliJ IDEA should automatically detect the default shell based on your environment. Here are some examples of different shells:

Bash for Windows: bash.exe

Command Prompt: cmd.exe

Integrate the terminal with the system shell to properly keep track of your command history for sessions and load a custom config file with required environment variables.

Highlight hyperlinksHighlight HTTP links in the terminal and make them clickable.Use Option as Meta keyOn macOS, use the Option key as the Meta key.Run Commands using IDE

Detect and highlight commands that can be used as IDE features instead of running them in the terminal and reading console output.

Cursor shapeSelect the shape of the cursor: block, underline, or vertical.Activate virtualenv

For the Python interpreter being a virtual environment, with this checkbox selected, the virtual environment is automatically activated ( activate is performed automatically).

This option is available only if you have the Python plugin installed.

The embedded terminal emulator also inherits the following IDE settings:

On the Keymap page, you can configure the copy Ctrl+C and paste Ctrl+V shortcuts.

On the Editor | General | Appearance page, you can configure blinking frequency for the caret. The Terminal does not inherit the Use block caret option because there is a separate option for that: Cursor shape.

On the Editor | Color Scheme | Console Font page, you can configure line spacing and fonts.

On the Editor | Color Scheme | Console Colors page, you can configure font colors.

On the Editor | Color Scheme | General page, you can configure the selection foreground and background colors.

Run IDE features from the terminal

Instead of running a specific 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. For example, the diff viewer actually runs the diff command in the system shell to produce results. Another example is the Log tab in the Git tool window, which is based on the output of the git log command.

Open the Log tab of the Git tool window from the terminal

Type a supported command in the terminal and notice how it is highlighted.

как поменять терминал в intellij idea windows. smart command execution git log. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-smart command execution git log. картинка как поменять терминал в intellij idea windows. картинка smart command execution git log. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

как поменять терминал в intellij idea windows. smart command execution. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-smart command execution. картинка как поменять терминал в intellij idea windows. картинка smart command execution. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Источник

How to open two terminal windows in IntelliJ IDEA, PyCharm?

Is it possible to open two terminal windows in IntelliJ IDEA (or in any other IDE based on it, like PyCharm)?

как поменять терминал в intellij idea windows. lvWfj. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-lvWfj. картинка как поменять терминал в intellij idea windows. картинка lvWfj. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

9 Answers 9

In case of terminal toolbar status, you can do one of these options как поменять терминал в intellij idea windows. s2Z0j. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-s2Z0j. картинка как поменять терминал в intellij idea windows. картинка s2Z0j. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Also after that you can drag them as tabs and let them be side by side.

You can open multiple tabs and then use the mouse drag them out into the editor area. Then you may want to split the editor vertically to have two consoles side by side. Or you could use one terminal in the tool window and the other up in the editor area.

как поменять терминал в intellij idea windows. BNwVl. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-BNwVl. картинка как поменять терминал в intellij idea windows. картинка BNwVl. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Besides the great answer given by avb (using the + or right click), you can of course also use a hotkey for this (when selected the terminal) press:

Windows / Linux: Ctrl + T

Note: you can even rename tabs by double clicking on their label.

как поменять терминал в intellij idea windows. F8BPc. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-F8BPc. картинка как поменять терминал в intellij idea windows. картинка F8BPc. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

This worked for me in IntelliJ Idea.

Click the plus icon to open a second terminal window

как поменять терминал в intellij idea windows. yeJrX. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-yeJrX. картинка как поменять терминал в intellij idea windows. картинка yeJrX. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

If you want to split the windows so both shows at the same time, just right-click on the second tab and select horizontal or vertical

как поменять терминал в intellij idea windows. eOlEK. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-eOlEK. картинка как поменять терминал в intellij idea windows. картинка eOlEK. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Hope it helped someone.

You can drag terminal tabs into editor view and then use standard horizontal/vertical split to position them wherever you want them.

It’s a bit hack since the editor then considers your terminal window a file and names it Local or Local(x) if you have multiple.

Also note, that since IDE considers it a file, you cannot just split the view to get a new instance of terminal. You would have to use the terminal view to create a new tab and then again drag it to the designated area.

This is how it looks: как поменять терминал в intellij idea windows. wGgao. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-wGgao. картинка как поменять терминал в intellij idea windows. картинка wGgao. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Источник

Using the Terminal in IntelliJ IDEA

Read this post in other languages:
Français

In this video we’re going to take a look at IntelliJ IDEA’s built in terminal. This performs the same function as your operating system’s terminal or command feature, but using the terminal inside IntelliJ IDEA has a number of benefits.

Opening the IntelliJ IDEA Terminal Window

In this example we have a simple Spring Boot application that needs a running MongoDB database. We can open the terminal window with ⌥F12 on macOS, or Alt+F12 on Windows and Linux. The terminal supports all the same commands that the operating system supports.

If we want to start the MongoDB database instance with a specific path for storing the data, we can type:

and press enter. When MongoDB is running in the terminal session, we can go back to writing the application code in the editor. By using the built in terminal, we don’t have to switch between applications, and we can easily have all aspects of our development right in front of us in the same window.

как поменять терминал в intellij idea windows. 00 mongodb. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-00 mongodb. картинка как поменять терминал в intellij idea windows. картинка 00 mongodb. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Multiple Terminal Sessions

We can open a second terminal tab with ⌘T on macOS, or Ctrl+Shift+T on Windows and Linux, to run the MongoDB shell as a new command:

Then we can interact with the server that’s running, and check everything is OK for our application.

как поменять терминал в intellij idea windows. 01 mongo shell. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-01 mongo shell. картинка как поменять терминал в intellij idea windows. картинка 01 mongo shell. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Running commands in different tabs is helpful, but sometimes two different processes are closely related and we want to see them together. For this, we can split our terminal window so that we can run two in the same window. For example, you can open up the mongo shell in this split window and can see if the commands have any impact on the running server.

как поменять терминал в intellij idea windows. 02 split terminal. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-02 split terminal. картинка как поменять терминал в intellij idea windows. картинка 02 split terminal. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Naming Terminal Tabs

We can run any type of command from the terminal window. For example, although IntelliJ IDEA has full integration with Gradle, sometimes we might want to check a build tool like Gradle or Maven runs correctly from the command line. We might sometimes do this with different Java versions or different arguments to those we’re using in the application. Given that we might be using a number of terminal sessions with a number of different processes or parameters, it’s useful to rename the tabs to something helpful. You can do this from the context menu, which you can open by right-clicking on the tab. That way we can easily reopen the one we’re interested in.

как поменять терминал в intellij idea windows. 03 rename tab. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-03 rename tab. картинка как поменять терминал в intellij idea windows. картинка 03 rename tab. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

We can move between the different tabs with ⌘⇧[ or ⌘⇧] on macOS or Alt+ or Alt+ on Windows and Linux. We can switch between the splits with ⌥⇥ on macOS, or Ctrl+Tab on Windows and Linux. We can close splits or tabs with ⌘W on macOS, or Ctrl+F4 for Windows and Linux.

When we restart IntelliJ IDEA, our terminal session names and other settings will persist.

Pasting Code from the Editor into the Terminal

Running command line processes from inside IntelliJ IDEA is useful for keeping us in the same context while we’re developing, and for sharing content between different parts of our application. For example, if we’re running the Java REPL JShell in an IntelliJ IDEA terminal window, it’s easy to copy code from the editor and paste it into JShell. This is not specific to running JShell in the terminal, it’s easy to copy and paste code from anywhere in IntelliJ IDEA into the terminal window.

как поменять терминал в intellij idea windows. 04 paste. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-04 paste. картинка как поменять терминал в intellij idea windows. картинка 04 paste. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.
View steps in video

Terminal Locations from the Command Window

The integration provided by the IDE also extends to being able to open a location from inside the project window in the terminal window from the context menu. Right click on an item in the Project Window, for example, and select «Open in Terminal». This means that we can have a terminal window in the correct location immediately without having to navigate using the command line.

как поменять терминал в intellij idea windows. 05 open in terminal. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-05 open in terminal. картинка как поменять терминал в intellij idea windows. картинка 05 open in terminal. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

URLs and Stack Traces in the Terminal Window

URLs in the terminal window are clickable, so we can click on any link shown in the terminal window to open them in the browser. File names in the terminal can also link back to the file in the project. In stack traces, you can click on the file name and IntelliJ IDEA will open the file and put the caret on the line that caused the problem. This takes some of the pain out of debugging problems.

как поменять терминал в intellij idea windows. 06 clickable links. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-06 clickable links. картинка как поменять терминал в intellij idea windows. картинка 06 clickable links. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Run IDE Features from the Terminal

You may notice that some commands in the terminal window are highlighted. This is a new feature in IntelliJ IDEA 2020.2 that shows that the command could be run in the IDE, meaning we don’t need to use the command line.

как поменять терминал в intellij idea windows. 07 yellow highlight. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-07 yellow highlight. картинка как поменять терминал в intellij idea windows. картинка 07 yellow highlight. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

If it’s highlighted in yellow and we press Enter, the command will be run in the terminal window just as we’d expect. If we type the same command again, but this time use ⌘⏎ on macOS, or Ctrl+Enter on Windows and Linux, IntelliJ IDEA will use the feature in IntelliJ IDEA and open the relevant tool window.

IntelliJ IDEA detects a number of different commands that could be run in the IDE instead of from the command line. For example, the git command:

will execute normally if we press Enter. If we press ⌘⏎ on macOS, or Ctrl+Enter on Windows and Linux, it opens the Git log window in IntelliJ IDEA.

This is a great way to discover features in the IDE that are an alternative approach to using the command line. If we decide we’re not going to need these suggestions, we can turn off «Run IDE Features from the Terminal» from the terminal window’s settings using the context menu. The commands will no longer be highlighted.

Summary

IntelliJ IDEA’s terminal window is a powerful and helpful tool for developers. It keeps our attention in the same tools which reduces context switching. It makes it easy for us to share things between the editor and the command line. The terminal is integrated allowing us to easily move from the project code to the terminal and back again, and it also can show us alternative ways of doing the same thing, using the IDE’s version of the command line tool.

Источник

Как открыть два окна терминала в IntelliJ IDEA, PyCharm?

Можно ли открыть два окна терминала в IntelliJ IDEA (или в любой другой IDE на основе этого, например PyCharm)?

ОТВЕТЫ

Ответ 1

В случае состояния панели инструментов терминала вы можете выполнить одну из этих опций как поменять терминал в intellij idea windows. 99b7bd97f39f1a4fec76ad55feef187b. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-99b7bd97f39f1a4fec76ad55feef187b. картинка как поменять терминал в intellij idea windows. картинка 99b7bd97f39f1a4fec76ad55feef187b. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Также после этого вы можете перетащить их в виде вкладок и позволить им быть рядом.

Ответ 2

Ответ 3

как поменять терминал в intellij idea windows. 420e85af822448ca72cbeed21af01e05. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-420e85af822448ca72cbeed21af01e05. картинка как поменять терминал в intellij idea windows. картинка 420e85af822448ca72cbeed21af01e05. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Помимо отличного ответа от avb (с помощью + или правого клика), вы также можете использовать горячую клавишу для этой (при выборе терминала) печати:

Windows/Linux: Ctrl + T

Примечание: вы можете даже переименовать вкладки, дважды щелкнув их ярлык.

Ответ 4

Ничего себе, я обнаружил, что прямо сейчас, решение приходит из PyCharm 2016.3 Help: Щелкните правой кнопкой мыши заголовок вкладки и выберите «Изменить ориентацию разделителя» в контекстном меню.

Ответ 5

Вы можете перетащить вкладки терминала в представление редактора, а затем использовать стандартное горизонтальное/вертикальное разделение, чтобы расположить их там, где вы хотите.

Это немного хакерство, так как редактор затем считает ваше окно терминала файлом и называет его Local или Local(x) если у вас их несколько.

Также обратите внимание, что, поскольку IDE считает это файлом, вы не можете просто разделить представление, чтобы получить новый экземпляр терминала. Вам придется использовать вид терминала, чтобы создать новую вкладку, а затем снова перетащить ее в обозначенную область.

Вот как это выглядит: как поменять терминал в intellij idea windows. 6e0d3f8e26c0a3ebae08956a6e289344. как поменять терминал в intellij idea windows фото. как поменять терминал в intellij idea windows-6e0d3f8e26c0a3ebae08956a6e289344. картинка как поменять терминал в intellij idea windows. картинка 6e0d3f8e26c0a3ebae08956a6e289344. IntelliJ IDEA includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Java tools, Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Ответ 6

Перед перемещением переименуйте вкладку терминала в окне терминала. Затем имя сохраняется вместо «Местный»

Источник

Записки программиста

Краткая шпаргалка по сочетаниям клавиш в IntelliJ IDEA

Как ранее уже сообщалось, я начал активно изучать возможности IntelliJ IDEA. В частности, я стараюсь запомнить наиболее востребованные хоткеи, чтобы выполнять большую часть работы, не отрывая руки от клавиатуры, как это происходит при программировании в Vim. По моим наблюдениям, это реально экономит кучу времени. Я сделал для себя шпаргалку по хоткеям IDEA, которую вы найдете под катом. Полагаю, она также пригодится кому-то из посетителей данного блога.

Примечание: Те же сочетания клавиш работают и в других продуктах JetBrains, например, PyCharm и CLion.

Ниже не приводятся общеизвестные и очевидные сочетания вроде Ctr+C, Ctr+V или Ctr + S. В IntelliJ IDEA многие хоткеи имеют парный хоткей отличающийся только тем, что в нем дополнительно участвует клавиша Shift. Обычно она добавляет в том или ином виде выделение текста. Например, Ctr + End переводит курсор в конец файла, а Ctr + Shift + End выделяет код от текущей позиции до конца файла. Догадаться о существовании парных хоткеев несложно, поэтому далее они не приводятся. Наконец, если в любом диалоге IntelliJ IDEA вы видите подчернутые буквы, знайте, что сочетание Alt + буква равносильно использованию соответствующего контрола (обычно кнопок). Например, быстро запушить код в репозиторий можно путем нажатия Ctr + K, Alt + I, Alt + P, а затем снова Alt + P.

Итак, основные сочетания следующие.

Редактирование:

Окна, вкладки:

Alt + влево/вправоПеремещение между вкладками
Ctr + F4Закрыть вкладку
Alt + циферкаОткрытие/закрытие окон Project, Structure, Changes и тд
Ctr + TabSwitcher, переключение между вкладками и окнами
Shift + EscЗакрыть активное окно
F12Открыть последнее закрытое окно
Ctr + колесикоZoom, если он был вами настроен

Закладки:

F11Поставить или снять закладку
Ctr + F11Аналогично с присвоением буквы или цифры
Shift + F11Переход к закладке (удаление — клавишей Delete)
Ctr + ЧислоБыстрый переход к закладке с присвоенным числом

Подсказки и документация:

Ctr + QДокументация к тому, на чем сейчас курсор
Ctr + Shift + IПоказать реализацию метода или класса
Alt + QОтобразить имя класса или метода, в котором мы находимся
Ctr + PПодсказка по аргументам метода
Ctr + F1Показать описание ошибки или варнинга
Alt + EnterПоказать, что нам предлагают «лампочки»

Поиск:

Дважды ShiftБыстрый поиск по всему проекту
Ctr + Shift + AБыстрый поиск по настройкам, действиям и тд
Alt + вниз/вверхПерейти к следующему/предыдущему методу
Ctr + [ и Ctr + ]Перемещение к началу и концу текущего скоупа
Ctr + FПоиск в файле
Ctr + Shift + FПоиск по всем файлам (переход — F4)
Ctr + F3Искать слово под курсором
F3 / Shift + F3Искать вперед/назад
Ctr + GПереход к строке или строке:номеру_символа
Ctr + F12Список методов с переходом к их объявлению
Ctr + EСписок недавно открытых файлов с переходом к ним
Ctr + Shift + EСписок недавно измененных файлов с переходом к ним
Ctr + HИерархия наследования текущего класса и переход по ней
Ctr + Alt + HИерархия вызовов выбранного метода
Ctr + NПоиска класса по имени и переход к нему
Ctr + Shift + NПоиск файла по имени и переход к нему
Ctr + BПерейти к объявлению переменной, класса, метода
Ctr + Alt + BПерейти к реализации
Ctr + Shift + BОпределить тип и перейти к его реализации
Shift + Alt + влевоПеремещение назад по стеку поиска
Shift + Alt + вправоПеремещение вперед по стеку поиска
F2 / Shift + F2Переход к следующей / предыдущей ошибке
Shift + Alt + 7Найти все места, где используется метод / переменная
Ctr + Alt + 7Как предыдущий пункт, только во всплывающем окне

Генерация кода и рефакторинг:

Ctr + SpaceПолный автокомплит
Ctr + Shift + SpaceАвтокомплит с фильтрацией по подходящему типу
Alt + /Простой автокомплит по словам, встречающимся в проекте
Ctr + IРеализовать интерфейс
Ctr + OПереопределить метод родительского класса
Ctr + JГенерация шаблонного кода (обход по итератору и тд)
Ctr + Alt + JОбернуть выделенный код в один из шаблонов
Alt + InsertГенератор кода — сеттеров, зависимостей в pom.xml и тд
Shift + F6Переименование переменной, класса и тд во всем коде
Ctr + F6Изменение сигнатуры метода во всем коде
F6Перемещение метода, класса или пакета
F5Создать копию класса, файла или каталога
Shift + F5Создать копию класса в том же пакете
Alt + DeleteБезопасное удаление класса, метода или атрибута
Ctr + Alt + MВыделение метода
Ctr + Alt + VВыделение переменной
Ctr + Alt + FВыделение атрибута
Ctr + Alt + CВыделение константы (public final static)
Ctr + Alt + PВыделение аргумента метода
Ctr + Alt + NИнлайнинг метода, переменной, аргумента или константы
Ctr + Alt + OОптимизация импортов

Прочее:

Быстрое переключение цветовой схемы, code style и тдAlt + F12Открыть/закрыть терминалF10Запустить последнюю запущенную программу или тестShift + F10Запустить открытую в редакторе программу или тестShift + Alt + F10Запустить что-то из списка того что запускалось раньшеCtr + F2Остановить программуCtr + Alt + AДобавить в систему контроля версийCtr + KСделать коммит в систему контроля версийCtr + Shift + KСделать пуш в систему контроля версийCtr + Shift + PВ Scala-плагине определяет implicit параметрыCtr + Shift + QВ Scala-плагине определяет implicit преобразования

Понятное дело, в этой шпаргалке названы далеко не все возможности IntelliJ IDEA. Всем заинтересованным лицам я настоятельно рекомендую вот прямо брать и читать ее замечательную документацию, там очень много интересного. Жаль только, что документация не доступна в виде одного большого PDF файла.

Дополнение: В последних версиях IDEA можно использовать несколько курсоров, разместив их либо при помощи комбинации Alt+Shift+ЛКМ, либо вертикальным выделением при помощи клика средней клавишей мыши. Держа на вооружении сочетание Ctr + влево/вправо, осуществляющего переход между словами, а также другие, можно очень удобно редактировать сразу несколько строк кода.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *