IntelliJ Idea,如何从控制台中删除Java文件目录? [英] IntelliJ Idea, how to remove java file directory from Console?

查看:356
本文介绍了IntelliJ Idea,如何从控制台中删除Java文件目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行文件时,它将打开控制台窗口,并一直在其顶部始终具有文件所在的目录.这很烦人,因为现在,要从与目录混合的其他行中分离出来,我必须在启动任何System.out.println()命令之前使用"\ n".

When you run a file, it opens the console window and all the way on top it has the directory of where the file is. This is pretty irritating because now, to separate other lines from mixing with the directory, I have to use "\n" on before any System.out.println() commands can be initiated.

"C:\ Program Files ..."我想摆脱它.

"C:\Program FIles..." I want to get rid of that.

推荐答案

目前尚无办法禁用它.

它确实显示了有用的信息,该信息显示了正在使用的jvm以及用于配置它的参数,因此它确实在某种程度上注释"了程序日志.当程序终止时,您还将获得一行说明退出代码的行.

It does show useful information which shows which jvm is being used and which parameters are used to configure it, so it does "annotate" your program log to some extent. You'll also get a line stating the exit code when your program terminates.

有一个选项可以将控制台日志写入文件,我不确定它是否显示jvm版本和退出代码,也许您可​​以尝试一下,看看它是否对您有用

There is an option to be able to write the console log to a file, I'm not sure if it shows the jvm version and exit code or not, perhaps you can try it and see if it is be useful to you.

这篇关于IntelliJ Idea,如何从控制台中删除Java文件目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆