Intellij idea 我可以在IntellIJ中显示环境变量而不运行程序吗?

Intellij idea 我可以在IntellIJ中显示环境变量而不运行程序吗?,intellij-idea,Intellij Idea,我想显示加载IntelliJ时生效的环境变量(例如,直接从右侧栏执行的构建将使用这些变量)。有没有一种方法可以从UI执行此操作?目前我知道的唯一方法是运行一些代码,如以下Java片段: Map<String, String> env = System.getenv(); for (String envName : env.keySet()) { System.out.format("%s=%s%n", envName, env.

我想显示加载IntelliJ时生效的环境变量(例如,直接从右侧栏执行的构建将使用这些变量)。有没有一种方法可以从UI执行此操作?目前我知道的唯一方法是运行一些代码,如以下Java片段:

        Map<String, String> env = System.getenv();
        for (String envName : env.keySet()) {
            System.out.format("%s=%s%n", envName, env.get(envName));
        }
Map env=System.getenv();
for(字符串envName:env.keySet()){
System.out.format(“%s=%s%n”,envName,env.get(envName));
}

为了说明@Nikos M.的建议:

这有帮助吗?