简体   繁体   中英

IntelliJ Idea, how to remove java file directory from Console?

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..." I want to get rid of that.

There is presently no way to disable this.

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.

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.

也许尝试设置->编辑器->常规->控制台,在“折叠包含:的控制台行”中,添加要折叠的行的子字符串,例如“C:\\Program Files”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM