如何在Clion / Intellij中扩展“运行工具”窗口的最大宽度? [英] How can I expand the max width of the Run Tool Window in Clion/Intellij?

查看:502
本文介绍了如何在Clion / Intellij中扩展“运行工具”窗口的最大宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如您所见,文本有足够的空间可以向右扩展,但是可以换成120个字符。我尝试关闭软包装(右侧的小按钮),尝试在编辑器->常规->控制台下进入设置,取消选中在控制台中使用软包装,并增加控制台命令历史记录大小 ,但这些方法均无效。我希望程序的提示继续向右移动,理想情况下,只是制作一个水平滚动条,而不是包装或截断。是否可以在CLion / Intellij中执行此操作?

As you can see, there's plenty of space for the text to expand to the right, but it gets wrapped at 120 characters. I have tried turning off soft wrapping (the little button on the right side), I tried going into the settings, under editor -> general -> console, unchecking "use soft wraps in console", and increasing the "console commands history size", but none of these have worked. I'd like for the cout of my program to continue to the right, and ideally just make a horizontal scroll bar rather than wrapping or truncating. Is there a way to do this in CLion/Intellij?

推荐答案

120是Windows控制台的默认值。要更改
的值1.您可以设置操作系统范围的系统变量 CONSOLE_WIDTH
2.在运行配置中设置 CONSOLE_WIDTH

120 is the default value for windows console. To change the value 1. you can set the OS-wide system variable CONSOLE_WIDTH. 2. setup CONSOLE_WIDTH inside you run configuration:

然后注册表... (又名帮助->查找操作->注册表...)必须被调用以选择 run.processes.with.pty

then Registry... (aka Help -> Find action -> Registry...) got to be invoked to opt out value of run.processes.with.pty

这篇关于如何在Clion / Intellij中扩展“运行工具”窗口的最大宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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