我一直在使用pycharm-community
有一段时间了Ubuntu
即使我通过将终端输出发送到后台来启动pycharm-community myfile.py &
PyCharm 生成的垃圾输出仍然充满我的终端,我觉得这真的很烦人,有没有办法从 PyCharm 中抑制这种垃圾?
PyCharm 的开发者为什么会这样构建它?我的意思是强制用户终端上的垃圾,即使他们不想查看它?
最佳答案
只需将您的输出和错误流重定向到 /dev/null
就像您对任何其他您不感兴趣的输出的命令所做的那样:
pycharm-community myfile.py > /dev/null 2>&1
至于以下:And what is the reason why the developers of pycharm built it this way? I mean to force the junk on users terminal even if they don't want to view it?
一个人的垃圾就是另一个人的宝藏。你所说的垃圾对某些人来说实际上是有用的。也许开发人员认为命令行用户会知道如何重定向他们的输出和错误流。
关于linux - 抑制来自 PyCharm 的烦人的终端输出垃圾,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69221210/