vb.net 在 Visual Studio 中更改输出控制台的字体?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35958610/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 19:45:58  来源:igfitidea点击:

Change font of output console in Visual Studio?

vb.netvisual-studioide

提问by user98937

I'm a beginner programmer using visual basic on visual studio working mostly with Consoles, and I would like to change the font size of the text that the compiler outputs displays when the code is compiled (not the text when I'm coding, those are fine). Here's what it looks like, compare it to the exit, minimise buttons and the file directory on the title bar for size references

我是一名在 Visual Studio 上使用 Visual Basic 的初级程序员,主要使用控制台,我想更改编译器在编译代码时输出的文本的字体大小(不是我编码时的文本,那些没事)。这是它的样子,将其与退出、最小化按钮和标题栏上的文件目录进行比较,以供大小参考

Right now, the font size is like 8pt which is annoying.

现在,字体大小就像 8pt,这很烦人。

回答by jessehouwing

Open the options window and go to the Fonts and Colorsitem. Select the window you'd like to change and then change the font-size to your liking:

打开选项窗口并转到该Fonts and Colors项目。选择您要更改的窗口,然后根据自己的喜好更改字体大小:

enter image description here

enter image description here

You'll likely need to change multiple items, since each window uses its own settings:

您可能需要更改多个项目,因为每个窗口都使用自己的设置:

  • Output Window
  • Command Window
  • Immediate Window
  • 输出窗口
  • 命令窗口
  • 即时窗口

And possibly others.

可能还有其他人。

enter image description here

enter image description here

To change the font size of the console that launches when you debug an application, you need to change the default font size for the windows console.

要更改调试应用程序时启动的控制台的字体大小,您需要更改 Windows 控制台的默认字体大小。

Start a command-prompt and then open the options screen

启动命令提示符,然后打开选项屏幕

enter image description here

enter image description here

Set the font size:

设置字体大小:

enter image description here

enter image description here

This will apply to all consoles that open in the future.

这将适用于将来打开的所有控制台。

回答by Skandalos

None of the solutions suggested by jessehouwing worked for me (using Visual Studio 2017).

jessehouwing 建议的所有解决方案都不适合我(使用 Visual Studio 2017)。

What did work was running a console program to open the console, clicking the small icon on the left in the title bar of the console window, clicking properties, fonts, and chosing the preferred font size.

有效的是运行控制台程序来打开控制台,单击控制台窗口标题栏中左侧的小图标,单击属性、字体并选择首选字体大小。

回答by Goran_Ilic_Ilke

In VSC 2019 go to File -> Preferences -> Settings -> Features -> Terminal and find option of font-size and change to apropriate value for your needs.Question isnt really clear what you exactly need but for all settings of font-size-s is pretty the same path to the solution.

在 VSC 2019 中,转到文件 -> 首选项 -> 设置 -> 功能 -> 终端并找到字体大小选项并根据您的需要更改为适当的值。问题并不清楚您究竟需要什么,但对于字体大小的所有设置-s 与解决方案的路径完全相同。