英文:
Disable debug output in Gogland
问题
在更新到最新的Gogland版本后,在我的调试控制台中看到了以下信息:
GOROOT=/usr/local/go
GOPATH=/Users/mayvas/GoProjects
/usr/local/go/bin/go build -o /private/var/folders/m5/gqb1s0q579b6bdz7hdjwmf7r0000gn/T/___go_run_addressbook_go /Users/mayvas/GoProjects/src/gitlab.yarmel.com/mayvas/meafex/addressbook.go
/private/var/folders/m5/gqb1s0q579b6bdz7hdjwmf7r0000gn/T/___go_run_addressbook_go
是否可以禁用这个?我使用的是小屏幕分辨率,这些信息对我来说没有用。
谢谢!
英文:
After updating to the last Gogland release in my debug console I see such information
GOROOT=/usr/local/go
GOPATH=/Users/mayvas/GoProjects
/usr/local/go/bin/go build -o /private/var/folders/m5/gqb1s0q579b6bdz7hdjwmf7r0000gn/T/___go_run_addressbook_go /Users/mayvas/GoProjects/src/gitlab.yarmel.com/mayvas/meafex/addressbook.go
/private/var/folders/m5/gqb1s0q579b6bdz7hdjwmf7r0000gn/T/___go_run_addressbook_go
It is possible to disable this? I use small screen resolution & this info not useful for me.
Thank you!
答案1
得分: 4
- 打开帮助 | 查找操作...
- 输入"注册表"并按回车键。
- 在那里找到"go.run.processes.with.pty"并将其关闭。
现在,IDE将折叠这些信息,并使其看起来更整洁。
英文:
- Open Help | Find Action...
- Type Registry and hit Enter.
- Find go.run.processes.with.pty there and turn it off.
Now IDE will fold
those information and will make it look cleaner.<hr>
<hr>
答案2
得分: 2
在@dlsniper提到的问题得到修复之前,您可以使用以下解决方法:
在文件 | 设置 | 编辑器 | 通用 | 控制台
中,将GOPATH=
, GOROOT=
等内容添加为代码折叠标记。就像这样:
之后,输出将会像这样显示:
英文:
Until the issue that @dlsniper mentioned got fixed, you can use following workaround:
Add GOPATH=
, GOROOT=
, etc. as a code folding marker in File | Settings | Editor | General | Console
. Like this:
After that output will look like this:
答案3
得分: 1
在更新到最新的Gogland版本后,在我的调试控制台中看到了这样的信息。
最新版本只添加了GOROOT行,其他信息之前就有了。
目前无法隐藏/禁用这些信息,您只能清除控制台。不过,看起来您已经禁用了“滚动到末尾”选项,该选项位于运行窗口中的“打印”按钮的右上方。这样,当输出的垂直长度大于控制台大小时,它会通过滚动视图自动隐藏输出。
我已经为您填写了https://youtrack.jetbrains.com/issue/GO-4452,请在那里关注该问题的更新。
英文:
> After updating to the last Gogland release in my debug console I see such information
The latest version added just the GOROOT line, all other information was there before.
> It is possible to disable this? I use small screen resolution & this info not useful for me.
At the moment you cannot hide / disable that information, you can only clear the console. However it looks like you've disabled the Scroll to end
option, the button right above the Print
in the run window. That should hide the output automatically for you by scrolling the view whenever the output vertical length is bigger than what the console size is.
I've filled https://youtrack.jetbrains.com/issue/GO-4452 for you, please watch the issue there for updates
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论