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

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

问题描述

如您所见,文本有足够的空间向右展开,但它被包裹在 120 个字符处.我尝试关闭软包装(右侧的小按钮),我尝试进入设置,在编辑器 -> 常规 -> 控制台下,取消选中在控制台中使用软包装",并增加控制台命令历史记录大小"",但这些都没有奏效.我希望我的程序的 cout 继续向右,理想情况下只制作一个水平滚动条而不是环绕或截断.有没有办法在 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:

然后 Registry...(又名 Help -> Find action -> Registry...) 必须被调用以选择退出 的值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天全站免登陆