- Terminal
- Open the Terminal tool window
- Start a new session
- Configure the terminal emulator
- Project Settings
- Application Settings
- Run IDE features from the terminal
- Open the Log tab of the Git tool window from the terminal
- Install IntelliJ IDEA on Linux
- Related Posts
- 17 comments
- Установка IntelliJ IDEA на Ubuntu 20.04
- Системные требования JetBrains Intellij IDEA
- Чем отличается Community от Ultimate
- Установка IntelliJ IDEA в Ubuntu 20.04
- 1. Установка из snap-пакета
- 2. Установка из центра приложений
- 3. Установка в Ubuntu Make
- 4. Установка с официального сайта
- 5. Установка в JetBrains Toolbox
- Удаление IntelliJ IDEA
- Выводы
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.
Initially, the terminal emulator runs with your default system shell, but it supports many other shells, such as Windows PowerShell, Command Prompt cmd.exe , sh , bash , zsh , csh , and so on. For information about changing the shell, see Configure the terminal emulator.
Open the Terminal tool window
From the main menu, select View | Tool Windows | Terminal or press Alt+F12 .
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
Click on the toolbar to start a new session in a separate tab.
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.
To close a tab, click on the Terminal toolbar or right-click the tab and select Close Tab from the context menu.
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.
To search for a certain string in a Terminal session, press Ctrl+F . This searches all text in the session: the prompt, commands, and output.
Configure the terminal emulator
- Press Ctrl+Alt+S to open the IDE settings and select Tools | Terminal .
Project Settings
These settings affect the terminal only for the current project:
Start directory | Specify the working directory where every new shell session should start. By default, it starts in the root directory of the current project. |
Environment variables | Specify 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
Cygwin: «C:\cygwin\bin\bash.exe» —login -i
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.
Shell integration works for sh , bash , zsh , and fish shells.
Detect and highlight commands that can be used as IDE features instead of running them in the terminal and reading console output.
When enabled, instead of pressing Enter , which runs the command in the terminal, press Ctrl+Enter to open the corresponding GUI element. For more information, see Run IDE features from the terminal.
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.
Instead of pressing Enter , which runs the command in the terminal, press Ctrl+Enter to open the corresponding GUI element. In this example, it will open the Log tab of the Git tool window and filter commits by authors with “dmitry” in their usernames.
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. To run a highlighted command in debug mode (use the Debug tool window instead of Run ) press Ctrl+Shift+Enter .
If you want to disable this feature, click on the title bar of the Terminal window and clear the Run Commands using IDE option.
Источник
Install IntelliJ IDEA on Linux
/Downloads directory. If the downloaded file is in another directory, replace the last parameter by the actual file path.
Now you can close this window and proceed to the next step.
- Tumblr
Related Posts
17 comments
Hi. Gobi. Looks Great.
Can I know why you are installing inside /opt/ directory? (We need permission right.)
Hi Pranavan,
If we extract the applications in home directory, they will be available for the current user only. /opt/ directory is reserved for all the software and add-on packages that are not part of the default installation.
For more details about /opt/:
http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/opt.html
Cool. In my case, I am using Home directory and using the shell files to start up the program. As you said, it will be good if I use this method since other users can use it. 🙂
Thanks.. it helps me a lot..
You are welcome. 🙂
How to install 2 versions of Intellij idea in Ubuntu?
Suppose I have IJ 14 working fine , I want to install IJ 16 and I extract it to /opt.Then when I use
«gedit intellij-idea.desktop» it opens the file which I have saved for IJ 14.
Sorry for the late response. Create the launcher using a different file name. For example, use «gedit intellij-idea-16.desktop» and continue with Step 5, 6, 7. If you prefer, use a different name and/or icon in step 5.
How do you remove the App icon from the Applications menu?
If you installed using the above method, you can remove the icon by executing the following command:
sudo rm /usr/share/applications/intellij-idea.desktop
[xxx@slc /opt]$ /opt/idea/bin/idea.sh
Invalid IDE Configuration: Config directory ‘/home/xxx/.IdeaIC2019.1/config’ is invalid.
If you have modified the ‘idea.config.path’ property, please make sure it is correct,
otherwise please re-install the IDE.
[xxx@slc /opt]$ /opt/idea/bin/idea.sh
Invalid IDE Configuration: Config directory ‘/home/xxx/.IdeaIC2019.1/config’ is invalid.
If you have modified the ‘idea.config.path’ property, please make sure it is correct,
otherwise please re-install the IDE.
I am stuck at step 5 with the above error. can i get some help please?
Hi,
Please delete the config folder and start Idea again.
«`
rm -rf
I respect this
article for the all around scrutinized content and superb wording. I got so
included in this material that I couldn’t quit perusing. I am inspired with
your work and expertise. Much thanks to you to such an extent.
generate
ideas
I followed above steps but I am wondering where is the intellij icon to open it, because its not showing in application manager
Hi, Sorry for the late response.
Did you follow the step 08?
how to create a file jetbrains-idea.desktop i didnt get the step 8 pls some post the soln for that
i m stuck at step 8 so pls some one get to know us.
Источник
Установка IntelliJ IDEA на Ubuntu 20.04
IntelliJ IDEA — это интегрированная среда разработки программного обеспечения, написанная на языке программирования Java. Программа разработана компанией JetBrains. Первая версия IntelliJ IDEA появилась ещё в 2001 году и очень быстро завоевала популярность среди программистов.
Сейчас среда поддерживает большое количество интересных функций, включая подсветку синтаксиса, отладчик, Git-инструменты и т. д. IntelliJ IDEA позволяет программировать не только на Java, но также на JavaScript, CoffeeScript, HTML, CSS, YAML, MSXML, Python, Ruby, Scala, PHP, C и C++. С полным перечнем языков можно ознакомиться на официальном сайте разработчиков. В этой инструкции мы рассмотрим, как выполняется установка IntelliJ IDEA Ubuntu 20.04.
Системные требования JetBrains Intellij IDEA
Минимальные системные требования:
- Процессор — 64-битный;
- RAM — 2 Гб;
- Свободное место на диске — 2,5 Гб (и 1 Гб для кэширования);
- Минимальное разрешение экрана — 1024 x 768;
- JDK 1.6 и выше (для разработки на Java).
Рекомендованные системные требования:
- Процессор — 64-битный;
- RAM — 8 Гб;
- Свободное место на диске — 5 Гб;
- Минимальное разрешение экрана — 1920 x 1080;
- JDK 1.6 и выше (для разработки на Java).
Чем отличается Community от Ultimate
IntelliJ IDEA распространяется в виде двух версий. Community Edition— бесплатная версия с открытым исходным кодом под лицензией Apache 2.0. Свободная версия имеет всю базовую функциональность, поддержку Java и других языков, а также интеграцию с системами управления версиями. Может использоваться для разработки Android-приложений. Вторая версия — Ultimate Edition, среди прочего, поддерживает Java EE и построение UML-диаграмм. С полным списком всех возможностей Ultimate-версии можно ознакомиться на официальном сайте.
Установка IntelliJ IDEA в Ubuntu 20.04
1. Установка из snap-пакета
Откройте терминал и выполните следующую команду для установки свободной редакции (Community Edition):
sudo snap install intellij-idea-community —classic —edge
Для установки платной редакции (Ultimate Edition) необходимо выполнить команду:
sudo snap install intellij-idea-ultimate —classic —edge
После завершения загрузки пакета программа будет доступна из главного меню:
2. Установка из центра приложений
Запустите центр приложений Ubuntu и введите в поиске название программы:
Выберите нужную версию, например IDEA Community, и нажмите на кнопку Установить.
Дождитесь, пока установка будет завершена.
Дождитесь пока установка Intellij IDEA на Ubuntu завершится. Время установки зависит от скорости вашего интернет-соединения. Весь процесс обычно занимает от 10 до 30 минут. По окончании загрузки запустите приложение.
3. Установка в Ubuntu Make
Ubuntu Make — это утилита командной строки для Ubuntu, которая позволяет устанавливать различные инструменты для разработки и среды программирования, такие как Eclipse, PyCharm, Ubuntu SDK, Android Studio и другие. IntelliJ IDEA тоже поддерживается.
Сначала нужно установить Ubuntu Make. Сделать это можно с помощью snap-пакета. Для установки необходимо выполнить команду:
sudo snap install ubuntu-make —classic
После завершения установки Ubuntu Make, чтобы установить IntelliJ IDEA, выполните следующую команду:
Затем выберите путь для скачивания файлов и нажмите клавишу ввода.
Дождитесь, пока установка будет завершена.
4. Установка с официального сайта
IntelliJ IDEA можно загрузить с официального сайта разработчиков. Это позволит скачать самую последнюю версию, доступную на данный момент. Однако, чтобы обновить среду разработки, придётся снова скачивать установочный файл и инсталлировать его повторно. Чтобы скачать IntelliJ IDEA, откройте официальный сайт и перейдите на вкладку Linux. Затем выберите подходящую версию (Ultimate или Community) и нажмите кнопку Скачать.
/Downloads/ideaIC-2021.1.3.tar.gz -C /opt/
После этого создайте ссылку на исполняемый файл программы командой:
sudo ln -s /opt/ideaIC-2021.1.3/bin/webstorm.sh /usr/local/bin/IntelliJIDEA
После установка будет завершена и вы можете запустить среду разработки. Однако первый раз вам придется запускать её из терминала:
А уже в самой программе можно создать ярлык. Для этого откройте меню Tools и кликните по Generate Desktop Entry. Дальше можно будет запускать программу как обычно из главного меню.
5. Установка в JetBrains Toolbox
JetBrains Toolbox — это официальный инструмент для установки пакетного обновления IntelliJ IDEA и других продуктов JetBrains. Загрузить JetBrains Toolbox можно на официальном сайте разработчиков.
После этого перейдите в директорию, куда был скачан архив. Например, если это папка Загрузки, выполните команду:
Затем разархивируйте архив:
tar -xzvf jetbrains-toolbox-1.20.8804.tar.gz
Перейдите в созданную директорию:
Запустите менеджер пакетов с помощью команды:
На момент написания статьи последняя версия Toolbox была 1.20.8804. Если вы будете использовать более позднюю версию менеджера пакетов, учитывайте это.
После запуска Toolbox найдите IntelliJ IDEA в списке и нажмите кнопку Install:
Дождитесь, пока программа будет установлена на компьютер. Запускать, настраивать и удалять программу можно прямо из главного меню Toolbox.
Удаление IntelliJ IDEA
Если вы устанавливали IntelliJ IDEA с использованием snap-пакета или через центр приложений Ubuntu, её можно удалить командой (для платной Ultimate-версии):
sudo snap remove intellij-idea-ultimate
Для удаления бесплатной Community-версии используйте команду:
sudo snap remove intellij-idea-community
Если же среда разработки была загружена с официального сайта, достаточно удалить распакованную папку вручную или с помощью команды в терминале:
sudo rm -Rf /opt/IntelliJIDEA*
Если IntelliJ IDEA была установлена при помощи JetBrains Toolbox, откройте его, найдите в перечне IntelliJ IDEA и нажмите на значок шестерёнки, который находится справа от названия программы. В раскрывшимся списке выберите Удалить. Теперь вы знаете как удалить intellij idea на ubuntu.
Выводы
В этой статье мы рассмотрели, как установить IntelliJ IDEA на Ubuntu 20.04. Как было показано, установить эту среду интегрированной разработки можно несколькими способами. Если у вас остались вопросы, задавайте их в комментариях.
Источник