11/12/2023 0 Comments Intellij datagrip community edition![]() ![]() Open the file where you wanna insert code.Just few necessary lines were required in the new branch. The restriction was, I can't do git merge or cherry-pick because we didn't want full commit to be part of new branch. In my case, I wanted to copy very specific code from 1 branch to another and I wanted to compare the difference between the code. You don't need 2 different Intellij instances. If you are looking to compare files between different branches, and you wanna compare the difference, that can be done with git comparison. But after careful thinking and searching for other options, I found an easy and quick solution and I wanna share with the community My answer is not directly related to the question but its a solution for some cases where we think we need 2 Intellij instances.įor my issue I was thinking to launch 2 Intellij instances. Obviously, you probably want to put the command in a script file for invocation. ![]() Now, you can start IntelliJ with the new setup: IDEA_PROPERTIES=~/idea/instance-0/idea.properties /opt/intellij/bin/idea # Uncomment this option if you want to customize path to IDE logs folder. # Uncomment this option if you want to customize path to user installed plugins folder. # Uncomment this option if you want to customize path to IDE system folder. # Uncomment this option if you want to customize path to IDE config folder. Open your idea.properties file and update the configurations for your directories: #. I highly recommend doing this without the running instance cp -r /opt/intellij/system ~/idea/instance-0/Ĭp -r /opt/intellij/plugins ~/idea/instance-0/Ĭp -r /opt/intellij/config ~/idea/instance-0/ cp /opt/intellij/bin/idea.properties ~/idea/instance-0/Ĭopy 3 more directories: system, plugins, and config. opt/intellij) and copy the idea.properties (in bin) file over to your instance directory. Here are my steps to get this going (in GNU/Linux, I am sure you can figure out equivalent in other systems):Ĭreate a folder/directory per instance you want to run. However, setting the config file alone was not sufficient for me to run multiple instances. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |