Visual studio как увеличить шрифт
Перейти к содержимому

Visual studio как увеличить шрифт

  • автор:

Name already in use

visualstudio-docs / docs / ide / how-to-change-fonts-and-colors-in-visual-studio.md

  • Go to file T
  • Go to line L
  • Copy path
  • Copy permalink
  • Open with Desktop
  • View raw
  • Copy raw contents Copy raw contents

Copy raw contents

Copy raw contents

How to: Change fonts, colors, and themes in Visual Studio

You can change the fonts and the colors in Visual Studio in several ways. For example, you can change the default dark theme (also referred to as «dark mode») to a light theme, a blue theme, an extra-contrast theme, or a theme that matches your system settings. You can also change the default font and text size in both the IDE and the code editor.

[!TIP] See the We’ve upgraded the UI in Visual Studio 2022 blog post to learn more about the subtle color contrast ratio adjustments and a new Cascadia Code font we’ve added to make Visual Studio more accessible for everyone.

You can change the fonts and the colors in Visual Studio in many ways. For example, you can change the default blue color theme to the dark theme (also referred to as «dark mode»). You can also select an extra-contrast theme if that best suits your needs. And, you can change the default font and text size in both the IDE and the code editor.

Change the color theme

Here’s how to change the color theme of the IDE frame and the tool windows in Visual Studio.

On the menu bar, choose Tools > Options.

In the options list, choose Environment > General.

In the Color theme list, choose either the default Dark theme, the Light theme, the Blue theme, or the Blue (Extra Contrast) theme.

You can also choose to use the theme that Windows uses by selecting Use system setting.

. image type=»content» source=»media/vs-2022/fonts-colors-theme.png» alt-text=»Screenshot of the Options dialog box where you can change the color theme.».

[!NOTE] When you change a color theme, text in the IDE reverts to the default or previously customized fonts and sizes for that theme.

[!TIP] Want even more themes to choose from? Check out the wide range of custom themes on the Visual Studio Marketplace. And to see examples of new Visual Studio 2022 custom themes based on VS Code, take a look at the Introducing a collection of new Visual Studio themes blog post.

On the menu bar, choose Tools > Options.

In the options list, choose Environment > General.

In the Color theme list, choose either the default Blue theme, the Light theme, the Dark theme, or the Blue (Extra Contrast) theme.

Screenshot of the Options dialog box to change the color theme

[!NOTE] When you change a color theme, text in the IDE reverts to the default or previously customized fonts and sizes for that theme.

Change fonts and text size

You can change the font and text size for all the IDE frame and tool windows, or for only certain windows or text elements. You can also change the font and text size in the editor, too.

To change the font and text size in the IDE

On the menu bar, choose Tools > Options.

In the options list, choose Environment > Fonts and Colors.

In the Show settings for list, choose Environment.

Screenshot of the Options dialog box where you change the font and text size in the IDE

[!NOTE] If you want to change the font for tool windows only, in the Show settings for list, choose All Text Tool Windows.

Modify the Font and Size options to change the font and text size for the IDE.

Select the appropriate item in Display items, and then modify the Item foreground and Item background options.

On the menu bar, choose Tools > Options.

In the options list, choose Environment > Fonts and Colors.

In the Show settings for list, choose Environment.

Screenshot of the Options dialog box to change fonts and colors in the IDE

[!NOTE] If you want to change the font for tool windows only, in the Show settings for list, choose All Text Tool Windows.

Modify the Font and Size options to change the font and text size for the IDE.

Select the appropriate item in Display items, and then modify the Item foreground and Item background options.

To change the font and text size in the editor

On the menu bar, choose Tools > Options.

In the options list, choose Environment > Fonts and Colors.

In Show settings for list, select Text Editor.

Screenshot of the Options dialog box where you change the font and text size in the editor

Modify the Font and Size options to change the font and text size for the editor.

Select the appropriate item in Display items, and then modify the Item foreground and Item background options.

On the menu bar, choose Tools > Options.

In the options list, choose Environment > Fonts and Colors.

In Show settings for list, select Text Editor.

Screenshot of the Options dialog box to change fonts and colors in the editor

Modify the Font and Size options to change the font and text size for the editor.

Select the appropriate item in Display items, and then modify the Item foreground and Item background options.

For more information about how to change fonts and colors for accessibility, see the Set accessibility options section of this page. And, for details about all the user interface (UI) elements where you can change font and color schemes, see the Fonts and Colors, Environment, Options Dialog Box page.

Set language-specific editor options

You can make a variety of changes to the code editor to suit your programming language of choice. For example, you can change brace formatting in C# to appear inline or on a new line, and more. To learn how to customize the code editor, see Set language-specific editor options.

Set accessibility options

In a neurodiverse world, we want to support our different learners and low-vision users by offering the following font options and color themes:

  • You can use the Cascadia Code font, which adds more weight to the proportions of letters, numerals, and characters to help disambiguate them. Cascadia Code also includes coding ligatures.
  • You can choose to use a high-contrast color theme for all the apps and UI on a computer, or an extra-contrast color theme for Visual Studio only.

Use the Cascadia Code font

The new Cascadia Code font includes Cascade Mono, which is the default font in Visual Studio 2022. Not only are both of these fonts easier to read, but the Cascadia Code font also includes coding ligatures that turn a sequence of characters into a glyph. Coding ligatures, or glyphs, make it easier for people to cognitively associate the meaning behind them.

The following screenshot shows an example of the default Cascadia Mono font and lists a series of characters, to include mathematical symbols, that you might find yourself using while you code.

. image type=»content» source=»media/vs-2022/cascadia-mono-font.png» alt-text=»Screenshot of an example of the Cascadia Mono font in the Editor.».

The following screenshot shows an example of the Cascadia Code font, where the same series of characters shown previously are now converted to coding ligatures, or glyphs.

. image type=»content» source=»media/vs-2022/cascadia-code-font.png» alt-text=»Screenshot of an example of the Cascadia Code font in the Editor.».

Notice that the last line of text in the Cascadia Code screenshot shows how the space between duplicate characters is reduced, which also makes them easier to read.

Here’s how to toggle between the Cascadia fonts:

Go to Tools > Options > Environment > Fonts and colors.

From the Font dropdown list, select either the Cascadia Code font or the Cascadia Mono font you want, and then select OK.

. image type=»content» source=»media/vs-2022/cascadia-font-options.png» alt-text=»Screenshot of the Cascadia fonts available from the Options dialog box.».

There are color theme options for you if you experience low vision. You can use a high-contrast option for all the apps and UI on a computer, or an extra contrast option for Visual Studio only.

Use Windows high contrast

Use either of the following procedures to toggle the Windows high contrast option:

In Windows or in any Microsoft application, press the Left Alt+Left Shift+PrtScn keys.

In Windows, choose Start > Settings > Ease of Access. Then, under the Vision section in Windows 10 and later, choose High contrast.

[!WARNING] The Windows high contrast setting affects all applications and UI on the computer.

Use Visual Studio extra contrast

Use the following procedures to toggle the Visual Studio extra contrast option:

On the menu bar in Visual Studio, choose Tools > Options, and then, in the options list, choose Environment > General.

In the Color theme drop-down list, choose the Blue (Extra Contrast) theme, and then choose OK.

[!TIP] If there is an accessibility option for colors or fonts that you think might be useful but isn’t currently available in Visual Studio, please let us know by selecting Suggest a feature in the Visual Studio Developer Community. For more information about this forum and how it works, see the Suggest a feature page.

More accessibility features in Visual Studio

Visual Studio also includes features to help people who have limited dexterity to write. For example, Visual Studio supports Dvorak keyboard layouts, which make the most frequently typed characters more accessible.

You can also customize the default keyboard shortcuts available with Visual Studio. For more information, see the following pages:

Visual Studio also includes auto-completion for methods and parameters; for more information, see IntelliSense in Visual Studio.

There are more ways to customize Visual Studio to be more accessible to you. For example, you can change the behavior of pop-up windows, text-based tool windows, toolbar buttons, margin indicators, and more.

[!NOTE] The dialog boxes and menu commands you see might differ from those described here, which can vary depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Reset settings.

Change the behavior of pop-up windows

Visual Studio displays pop-up windows in the editor. These pop-up windows include information that makes coding easier, such as parameters to complete a function or statement. The pop-up windows can also be helpful if you have difficulty typing. However, some users might find that they interfere with focus in the code editor, which can be problematic.

Here’s how to turn off the pop-up windows:

From the Tools menu, choose Options.

Choose Text Editor > All Languages > General.

Clear the Auto list members and Parameter information checkboxes.

You can rearrange the windows in the integrated development environment (IDE) to best suit the way you work. You can dock, float, hide, or automatically hide each tool window. For more information about how to change window layouts, see Customize window layouts.

Change the settings of text-based tool windows

You can change the settings for text-based tool windows, such as the Command window, Immediate window, and Output window by using Tools > Options > Environment > Fonts and Colors.

When you select [All Text Tool Windows] in the Show settings for drop-down list, the default setting is listed as Default in the Item foreground and Item background drop-down lists. Choose the Custom button to change these settings.

You can also change the settings for how text is displayed in the editor. Here’s how.

From the Tools menu, choose Options.

Choose Environment > Fonts and Colors.

Select an option on the Show settings for drop-down menu.

To change the font size for text in an editor, choose Text Editor.

To change the font size for text in text-based tool windows, choose [All Text Tool Windows].

To change the font size for ToolTip text in an editor, choose Editor Tooltip.

To change the font size for text in statement completion pop-ups, choose Statement Completion.

From Display items, select Plain Text.

In Font, select a new font type.

In Size, select a new font size.

[!TIP] To reset the text size for text-based tool windows and editors, choose Use Defaults.

Choose OK.

Change the colors for text, margin indicators, white space, and code elements

You can choose to change the default colors for text, margin indicators, white space, and code elements in the editor. Here’s how.

From the Tools menu, choose Options.

In the Environment folder, choose Fonts and Colors.

In Show settings for, choose Text Editor.

From Display items, select an item whose display you need to change, such as Plain Text, Indicator Margin, Visible White Space, HTML Attribute Name, or XML Attribute.

Select display settings from the following options: Item foreground, Item background, and Bold.

Choose OK.

[!TIP] To use high contrast colors for all application windows on your operating system, press Left Alt+Left Shift+PrtScn. If Visual Studio is open, close and then reopen it to fully implement high contrast colors.

Add text to toolbar buttons or modify the text

To improve toolbar usability and accessibility, you can add text to toolbar buttons.

To assign text to toolbar buttons

From the Tools menu, choose Customize.

In the Customize dialog box, select the Commands tab.

Select Toolbar, and then choose the toolbar name that contains the button you intend to display text for.

In the list, select the command you intend to change.

Choose Modify Selection.

Choose Image and Text.

To modify the displayed text in a button

Re-select Modify Selection.

Adjacent to In Name, insert provide a new caption for the selected button.

For more information about features, products, and services that make Windows more accessible for people with disabilities, see Accessibility products and services from Microsoft. And, for more information about how to obtain more accessible formats of documentation for Microsoft products, see the Documentation in alternative formats section of the Accessibility products and services from Microsoft page.

The accessibility information included on this page might apply only to users who license Microsoft products in the United States. If you obtained this product outside of the United States, visit the Microsoft Accessibility website for a list of Microsoft support services telephone numbers and addresses. You can contact your subsidiary to find out whether the type of products and services described on this page are available in your area. Information about accessibility is also available in other languages.

как изменить размер шрифта среды кода Visual Studio

есть ли способ изменить размер шрифта среды в коде Visual Studio? такие вещи, как intellisense box, панель отладки, имена файлов ..так далее.

Я знаю, как изменить размер шрифта редактора, но я не мог найти, как изменить размер шрифта среды, поэтому мне интересно, можете ли вы его как-то изменить

12 ответов:

В настоящее время невозможно изменить семейство шрифтов или размер вне редактора. Однако вы можете увеличить весь пользовательский интерфейс В и из .

обновление для нашей версии VS Code 1.0:

недавно введен параметр window.zoomLevel позволяет сохранить уровень масштабирования навсегда! Он может иметь как отрицательные, так и положительные значения для увеличения или уменьшения масштаба.

просто скопировать «editor.fontSize»: 18 в своем setting.json редактора.

клавишей управления + Shift + P а затем набрав «настройки», вы сможете легко найти файл настроек пользователя или рабочего пространства.

enter image description here

в коде Visual Studio, нажав Ctrl + и Ctrl — вы можете изменить общий размер шрифта IDE. Это помогает быстрее, чем изменение настроек в каждом сеансе. Надеюсь, это поможет.

  1. ctrl + shift + p

  2. выберите «Настройки пользователя»

  3. добавить «editor.fontSize»: 14

  1. ищите настройки рабочего пространства:
  1. затем » поместите настройки в файл справа, чтобы перезаписать. настройки по умолчанию и пользователя», или перейдите на вкладку UserSettings, чтобы настроить окно.зума, если это желаемое действие.

enter image description here

У меня есть мой набор в «editor.fontSize»: 12,

сохраните файл, вы увидите эффект сразу.

enter image description here

наслаждайтесь !

  1. Настройки Пользователя
  2. Настройки Рабочего Пространства
  3. Параметры Папок

вы можете увеличение и уменьшение весь пользовательский интерфейс в меню Вид.

сейчас я использую версия 1.21.1 и в меню Вид вы можете получить опцию увеличения и уменьшения масштаба, которые являются 2-й и 3-й последние варианты. Вы можете сделать это с помощью Ctrl + + и Ctrl + — .

вы можете сбросить масштаб в любое время, выбрав Сброс Масштабирования выбор.

на данный момент (март 2018) и версия 1.21.0, вы можете перейти к настройкам, поиск «масштаб» и изменить «editor.mouseWheelZoom»: false значение false по умолчанию для true . Это позволит увеличить / уменьшить масштаб кода VS с помощью кнопки управления и мыши — ctrl + scrollUp/scrollDown . Для изменения fontSize из общего рабочего пространства / экрана VS Code, обратитесь к ответу Alegozalves выше.

согласно списку изменений версии 1.2, были добавлены новые команды для увеличения и уменьшения масштаба только шрифта, но всего пользовательского интерфейса.

список изменений:https://code.visualstudio.com/updates/v1_24#_font-zoom-commands

попробуйте поиграть с комбинацией следующих пользовательских настроек:

вы можете найти то, что вы хотите в настройках.json из меню настроек. Microsoft дает формиат Настройки Настройки в их сайт.

The new Cascadia Code font

As part of the new Windows Terminal development, Microsoft provides an original open-source monospaced font, Cascadia Code.
It is recommended to be used with console applications and development text editors.
This new font supports programming ligatures!
Programming ligatures creates new glyphs by combining characters.
This helps make code more readable.
Image

Installing the Cascadia Code font in your windows system

  • Download the .ttf file from the github repo to any folder on your computer
  • Open the context menu for the downloaded file and select the Install option

Image

Change fonts in your IDE

Tired of the same font day after day? Follow this steps to have a new look and feel in your IDE!

How to change font size in VS Code

This concise article shows you 2 different ways to increase or decrease the font size in VS Code (Visual Studio Code).

Method 1: Using hotkeys

For macOS users: Advertisements

  • Press “Cmd” + “+” to increase the font size
  • Press “Cmd” + “-” to decrease the font size

For Windows users:

  • Press “Ctrl” + “+” to increase the font size
  • Press “Ctrl” + “-” to decrease the font size

Note: This approach change both the code and the UI font size. If you only want to change the code font size and keep the UI font size, check the second method.

Method 2

1. Launch your VS Code and go to:

  • Code > Preferences > Settings if you’re using macOS
  • File > Preferences > Settings if you’re using Windows

Advertisements 2. Select Text Editor > Font from the left-hand menu and head to the Font Size section (see the screenshot below for more clarity):

Enter your font size number into the box. Your change will automatically be saved and applied.

Note: This method doesn’t affect the UI text size. Advertisements

Further reading:

You can also check out our Visual Studio Code topic page for more tips and tricks to improve your producibility and coding experience.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *