IntelliJ IDEA global environment variable configuration

后端 未结 5 1423
萌比男神i
萌比男神i 2020-12-06 04:26

I need to use an envirnoment variable in all of my idea run configurations. I currently use run->edit configurations->and then ente

5条回答
  •  隐瞒了意图╮
    2020-12-06 05:04

    In my opinion the real issue is what Mat said. If you want to launch IntelliJ from a shortcut, then you have to edit it a little bit: Open the .desktop file, and add /bin/bash -c -i to the beginning of the launch command. The file should look something like this:

    [Desktop Entry]
    Exec=/bin/bash -i -c "/path/to/idea/bin/idea.sh" %f
    Name=IntelliJ IDEA Ultimate
    Type=Application
    Version=1.0
    

提交回复
热议问题