Как изменить шрифт в терминале windows

Download Windows Speedup Tool to fix errors and make PC run faster

This post will help you change font size for a Windows Terminal profile on Windows 11/10 computer. There are so many interesting Windows Terminal Tips and Tricks available that users find quite useful. One of such tips is to change the default font size. You can set the font size between 1 to 128 for any profile (like Command Prompt, PowerShell, etc.). The default font size set for a profile in Windows Terminal is 12. While some users find it satisfactory, others want to increase or decrease font size from time to time. If you also want to do that, this post covers some simple steps for that.

change font size Windows Terminal

Apart from changing the font size, Windows Terminal also provides the feature to set font-weight. You will be able to set font-weight to Normal, Bold, Semi-Light, Thin, Extra-Light, Semi-Bold, Medium, Black, Extra-Black, Extra-Bold, or custom (between 0 to 1000). So, depending on the font size set by you, you can select a font-weight that will best fit that font size.

To change the font size for a profile in Windows Terminal, you need to follow these steps:

  • Open Windows Terminal
  • Open Settings page
  • Select a Windows Terminal profile
  • Access the Appearance page for the selected profile
  • Set font size
  • Use the Save button.

First of all, use the Start menu or Search box to open the Windows Terminal app. It will open with the default profile set by you.

After this, open its Settings page. Use Ctrl+, hotkey to open it. Alternatively, you can simply click on the drop-down menu present on the top part and select the Settings option to open it.

open Settings

Now you need to select a profile for which you want to change the font size. Use the Profiles section available on the left side and select a profile. After that, access the Appearance page using the right section.

select a profile

Finally, you can change the font size using the given option. The option to set font-weight is also there. Once the font size is changed, use the Save button.

change font size and font weight for a Windows Terminal

Now access that Windows Terminal profile and you will see that font size is changed.

This post will help you if CTRL+ does not increase Font size in Windows Terminal.

I hope it helps.

Read next: How to change default profile in Windows Terminal.

Laxman has done Bachelor’s in Computer Science, followed by an MBA. Writing about Windows OS and the free software and services that are available for the Windows operating system is what excites him.

Windows Terminal change font it’s an easy task to try and there are a broad range of options. On Windows ten, the Windows Terminal app comes with a predefined set of customization settings that allows you to modification the font face globally and one by one for every console.

If you’re spending a lot of time using Command Prompt in Windows, then you’ll in all probability wish to customize its look. You may want to change the font and colors because you like a certain style or just because you find it easier to read, or it gets easier for your eyes over an extended period of time. For those that want to customize Command Prompt, doing therefore is comparatively easy and during this guide, you will learn and try how to do it for the Windows Terminal app on Windows ten.

In addition to any or all this, Windows Terminal has intensive customization choices to allow it a make-over to fit your style. With simply a number of clicks, you’ll be able to do the modification of the Windows Terminal background such as: color schemes, pointer sorts, acrylic effects, text rendering, anti-aliasing, etc. we are going to cover them in later guides.

Windows Terminal change font – Method 1

The Windows Terminal lets you change the default font face directly from its Settings page. Specifically, you can change the font of each shell individually. Here is how.

  1. Open the Windows Terminal app.
  2. Click on the dropdown icon on the title bar.
  3. Select “Settings” from the menu.
  4. Select the shell of your choice on the sidebar.
  5. Go to the “Appearance” tab.
  6. Type the full font name in the “Font Face” field.
  7. Click the “Save” button.
  8. Close and reopen Windows Terminal.
  9. With that, you’ve changed the default font face in Windows Terminal.

windows terminal change font

windows terminal change font

Tip: You can get the font face name from the Font directory. Open the Start menu, search for “Font Settings,” find the font of your choice, and type the name as you see it.

Windows Terminal change font – Method 2

1.Open the Windows Terminal app.

2.Use the Ctrl + Alt + , (comma) keyboard shortcut to open the settings.json file with the default code editor.

3.Under the “profiles” section, inside the “defaults” brackets, type the following command to change the font face.

"fontFace": "Consolas"

windows terminal change font using json

windows terminal change font using json

In the command, make sure to change the Consolas for the name of the font style you want to use.

4.Use the Ctrl + S keyboard shortcut to save the file

5.Close and reopen Windows Terminal.

6.With that, you’ve changed the default font face in Windows Terminal.

Windows Command Prompt – How to Change the Font

To configure Command Prompt, the first thing you need to do is to open it.

  1. Press the Windows key, type “cmd” or “Command Prompt”, then hit enter.
  2. Right-click on the top bar of Command Prompt

The bottom two options are important, “Defaults” and “Properties”. “Defaults” sets system wide Command Prompt settings, that will apply to any shortcut used to open Command Prompt. “Properties” overrides the “Defaults” for that one shortcut to open Command Prompt. As long as you never edit “Properties”, then “Defaults” will apply to all Command Prompt windows. If you ever make a change to the “Properties” of a Command Prompt window, the changes will always override the “Defaults” when that shortcut is used to open Command Prompt.

Tip: The settings in “Defaults” or “Properties” are identical, the difference is in where the changes are applied.

Windows Command Prompt change font

Windows Command Prompt change font

To configure the appearance of the text in Command Prompt, switch to the “Font” tab. Here you can edit the font size and the specific font used in the “Size” and “Font” sections respectively. The “Bold fonts” checkbox, allows you to make all fonts slightly more defined. A preview of the window size is shown in the top-right corner, and a preview of the text appearance in the bottom-left corner.

change font cmd

Windows Command Prompt – How to Change Colors

To configure Command Prompt’s colors, switch to the “Colors” tab. There are four settings you can change, the Screen Text, Screen Background, Popup Text, and Popup Background. “Screen Text” affects the color of text, while “Screen Background” affects the background color of Command Prompt. To set the color, select a setting you want to change, then either set an RGB value in the “Selected Color Values” section in the top-right corner, or select a pre-set color from the row of color boxes just below. The changes are previewed in the “Selected Screen Colors” section.

The two “Popup” settings affect the content of any popup boxes, such as the command history popup when you press F7. Again, “Popup Text” affect the text colour in popup boxes and “Popup Background” affects the background color.

Tip: You can also set the two “Screen” colours in the “Terminal” tab via the “Terminal Colours” section at the top. This method doesn’t have the convenient pre-set colours selection though.

change color cmd

  1. Do not forget to click the “OK” button.
  2. Close and reopen Windows Command Prompt
  3. With that, you’ve changed the default font face in Command Prompt

Conclusions

For those that want to customize Command Prompt or Windows Terminal, doing therefore is comparatively easy and during this guide, we showed you how to do it for the Windows Terminal app on Windows ten.

On Windows 11 or 10, the Windows Terminal app comes with a predefined set of customization settings, including the “Cascadia Mono” as the default font on every profile.

However, changing the default font face to anything you want is possible. For example, if you prefer the “Consolas” font, the original default for Command Prompt, or any other font face available on your device with the settings UI or the “settings.json” file.

This guide will teach you how to change the default font face for the Windows Terminal app on Windows 11 or 10.

  • Change default Windows Terminal font face with settings UI
  • Change default Windows Terminal font face with settings.json

Change default Windows Terminal font face with settings UI

To change the default font face with the settings UI, use these steps:

  1. Open Windows Terminal.

  2. Use the Shift +  Ctrl + , (comma) keyboard shortcut to open the settings UI.

  3. Click on Defaults.

  4. Click the Appearance tab.

  5. Under the “Text” section, use the “Font face” setting and type the name of the style – for example, Consolas.

    Windows Terminal change default font

  6. Click the Save button in the bottom-right corner.

Once you complete the steps, the new font style will apply immediately to every profile configured on the Windows Terminal.

Configure default specific profile font face

To change the font style for a specific command-line tool, use these steps:

  1. Open Windows Terminal.

  2. Use the Shift +  Ctrl + , (comma) keyboard shortcut to open the settings UI.

  3. Click on the profile to change the settings — for example, Windows PowerShell or Command Prompt.

  4. Click the Appearance tab.

  5. Under the “Text” section, use the “Font face” setting and type the name of the style – for example, Consolas.

    Change default font specific profile

  6. Click the Save button.

After you complete the steps, only the command-line tool you configured will start using the new font family.

Change default Windows Terminal font face with settings.json

To set a new default font face for the terminal with the settings.json file, use these steps:

  1. Open Windows Terminal.

  2. Use the Ctrl + Alt + , (comma) keyboard shortcut to open the settings.json file with the default code editor.

    Quick tip: It is recommended to use Visual Studio Code. You can also open the file by clicking the menu (down-arrow) button next to the tab and selecting the Settings option.

  3. Under the “profiles” section, inside the “defaults” brackets, type the following command to change the font face:

    "fontFace": "Consolas"

    Windows Terminal settings.json global font

    In the command, make sure to change the Consolas for the name of the font style you want to use.

    Quick tip: If you have more than one line of code inside the bracket, ensure all the lines end with a comma (,) except for the last line. Otherwise, the settings may not save correctly. You can find the name of all the available font faces on Settings > Personalization > Fonts.

  4. Use the Ctrl + S keyboard shortcut to save the file.

After you complete the steps, the font settings will apply automatically.

Configure default specific profile font face

To specify a new font style for a command-line tool with the settings.json file, use these steps:

  1. Open Windows Terminal.

  2. Use the Ctrl + Alt + , (comma) keyboard shortcut to open the settings.json file with the default code editor.

  3. Under the “profiles” section, inside the brackets of the profile you want to update, type the following command to change the font face:

    "fontFace": "Consolas"

    Windows Terminal settings.json profile font

    In the command, make sure to change the Consolas for the name of the font style you want to use.

    Quick tip: If you have more than one line of code inside the bracket, ensure all the lines end with a comma (,) except for the last line. Otherwise, the settings may not save correctly.

  4. Use the Ctrl + S keyboard shortcut to save the file.

Once you complete the steps, only the profile you configured will start using the new font family.

Why You Can Trust Pureinfotech

The author combines expert insights with user-centric guidance, rigorously researching and testing to ensure you receive trustworthy, easy-to-follow tech guides. Review the publishing process.

Table of Contents

The new Windows Terminal is a great replacement for the command prompt on Windows 11 PCs. 

Unlike the old cmd.exe, Windows Terminal is customizable, allowing you to open PowerShell windows, connect to remote Azure terminals, and more. You can even customize Windows Terminal to look how you want.

If you’re struggling to see the text results for commands you launch, you might want to know how to customize the Windows Terminal app to suit your needs. This guide will show you how.

How to Change Font in Windows Terminal?

By default, the Windows Terminal app uses Cascadia Mono as the default font face for new Windows PowerShell tabs. You can customize Windows Terminal to use any supported system font on Windows 11.

1. Right click on the Start menu and open the Terminal app.

2. In the Terminal window, press the drop-down arrow on the tab bar then select Settings.

3. In Settings page, select your default profile in the menu on the left then select Appearance on the right.

Note
Note: For most users, the default profile will be Windows PowerShell

4. In Appearance page, choose a new font from the Font face drop-down menu. If you want to use a custom font, select the Show all fonts checkbox and choose a font afterward.

Additionally, in the Appearance page, you can configure the color scheme, font size and font weight as well.

5. Press Save to confirm. Your chosen font should appear automatically. If it doesn’t, close the Terminal window and restart it. 

Note
Note: After you complete the steps, only the command-line tool you configured will start using the new font family..

Change the Windows Terminal font face with settings.json

Alternatively, you can set a new default font face for the Terminal with the settings.json file.

1. Open the Setting page then select Open JSON file at the left bottom corner. Or you can press the Ctrl + Alt + , (comma) keyboard shortcut to open the settings.json file with the default code editor.

2. Under the profiles section, inside a profile brackets, for example PowerShell profile. Add this command to change the font face for this profile:

Note
Tip: If you have more than one line of code inside the bracket, ensure all the lines end with a comma (,) except for the last line. Otherwise, the settings may not save correctly.

3. Save the file then the font settings will apply automatically.

Время на прочтение6 мин

Количество просмотров36K

Терминал Windows поставляется с множеством функций, которые позволяют настраивать его и взаимодействовать с ним наиболее удобным для вас способом. Давайте рассмотрим несколько советов и приемов, которые помогут вам настроить свой терминал так, чтобы он идеально вам подходил. На момент публикации этого сообщения в блоге Windows Terminal имел версию 1.3, а Windows Terminal Preview — версию 1.4.

При первом запуске

При первой установке Windows Terminal вы будете поприветствованы строкой Windows PowerShell. Терминал Windows по умолчанию поставляется с профилями Windows PowerShell, командной строки и Azure Cloud Shell.

В дополнение к этим профилям, если у вас установлены какие-либо дистрибутивы Подсистемы Windows для Linux (WSL), терминал также автоматически создаст профили для этих дистрибутивов. Если вы хотите установить дополнительные дистрибутивы WSL на свой компьютер, вы можете сделать это после установки терминала и при следующем запуске терминала профили для этих дистрибутивов должны появиться автоматически. Эти профили будут иметь значок Tux, однако вы можете изменить значок дистрибутива в своих настройках, чтобы он соответствовал любому дистрибутиву, который у вас есть. Вы можете найти дополнительную информацию о WSL на сайте с документацией WSL.

Примечание. Вам нужно будет загрузить значки дистрибутивов, поскольку они не поставляются внутри терминала.

Кастомизация

Терминал Windows поставляется с большим набором настроек по умолчанию, включая цветовые схемы и сочетания клавиш. Если вы хотите просмотреть файл настроек по умолчанию, удерживайте Alt и нажмите кнопку «Настройки» в раскрывающемся меню.

Глобальные настройки профиля

Терминал Windows предоставляет вам возможность применить настройку к каждому профилю без необходимости дублировать настройку для каждой записи профиля. Это можно сделать, добавив параметр в массив "defaults" внутри объекта "profiles". Список всех возможных настроек профиля можно найти на странице настроек профиля в нашей документации.

"profiles":
    {
        "defaults":
        {
            // Поместите здесь настройки, которые вы хотите применить ко всем профилям.
            "fontFace": "Cascadia Code"
        },
        "list":
        []
    }

Кастомные цветовые схемы

Терминал Windows по умолчанию поставляется с набором цветовых схем. Однако, когда дело касается цветовых схем, есть неограниченные возможности. Отличное место для поиска дополнительных схем терминалов — terminalplash.com.

Если вы хотите создать свою собственную цветовую схему, terminal.sexy — отличный инструмент для создания и визуализации ваших собственных цветовых схем.

Совет. Вы можете сопоставить свою цветовую схему с фоновым изображением, используя палитру цветов PowerToys, чтобы получить коды цветов для использования в вашей схеме. PowerToys можно установить с помощью winget с winget install powertoys.

Настраиваемая командная строка

Вы можете придать стиль своей командной строке с помощью Oh my Posh и Terminal-Icons. Эти инструменты позволяют настроить внешний вид вашей командной строки с помощью цветов, глифов и смайликов. Чтобы запустить Oh my Posh с Posh-Git и PSReadline, следуйте этому руководству.

Oh my Posh недавно выпустили Oh my Posh 3, который имеет гораздо больше возможностей настройки и не является эксклюзивным только для PowerShell. Пройдя руководство, указанное выше, вы можете перейти на V3 с помощью следующей команды:

Update-Module -Name oh-my-posh -AllowPrerelease -Scope CurrentUser

Вы можете добавить немного изюминки своей оболочке, добавив пользовательские значки с помощью значков терминала. На изображении ниже также используется настраиваемая тема Posh для добавления смайлов в строку.

Примечание. Для отображения значков терминала вам необходимо установить шрифт Nerd Font.

Олдскульный шрифт

Для тех из вас, кто является поклонником эффекта ретро-терминала, отличное место для поиска шрифтов старой школы находится на странице https://int10h.org/oldschool-pc-fonts/.

Места для фоновых изображений

Обои для рабочего стола часто отлично смотрятся в Windows Terminal в качестве фоновых изображений. Отличные места для поиска фоновых изображений — это темы Windows, а также WallpaperHub. Терминал Windows поддерживает как изображения, так и гифки для фоновых изображений.

Другой популярный вариант — размещение логотипа оболочки, которую вы используете в качестве фонового изображения, чтобы помочь определить, в какой оболочке вы находитесь. Вы можете указать, где будет размещаться фоновое изображение, с помощью "backgroundImageAlignment" в настройках. Дополнительную информацию о настройках фонового изображения можно найти в нашей документации.

Функции

аргументы командной строки wt.exe

Вы можете запустить свой терминал в определенной конфигурации с помощью команды wt.exe. Некоторые параметры, которые вы можете установить, — это расположение вкладок и панелей, а также их начальные каталоги и профили. Вы можете сохранить настраиваемую команду как ярлык и закрепить ее на панели задач, чтобы открыть желаемую конфигурацию.

Если вы используете команду wt.exe внутри палитры команд, она вступит в силу в вашем текущем окне терминала, вместо того, чтобы запускать новый экземпляр терминала.

В этом примере профиль PowerShell откроется в текущем рабочем каталоге на новой вкладке с вертикальной панелью, на которой будет запущен ваш профиль по умолчанию.

wt -p "PowerShell" -d . ; split-pane -V

Full documentation about wt command line arguments can be found on our docs site.

Панели

Терминал Windows поддерживает панель для профилей. Вы можете открыть новую панель профиля, удерживая Alt и щелкнув профиль в раскрывающемся списке, или используя следующие сочетания клавиш:

  • Автоматическое разделение панели текущего профиля: Alt+Shift+D
  • Горизонтальное разделение панели профиля по умолчанию: Alt+Shift+Minus
  • Вертикальное разделение панели профиля по умолчанию: Alt+Shift+Plus

Вы также можете перемещать фокус по панелям, удерживая Alt и используя клавиши со стрелками. Наконец, вы можете изменить размер панелей, удерживая Alt + Shift и используя клавиши со стрелками. Дополнительную информацию о панелях можно найти на нашем сайте документации.

Копи-паст

В Терминале Windows по умолчанию используются сочетания клавиш для копирования и вставки Ctrl+C и Ctrl+V, соответственно. Если у вас нет выделения, Ctrl + C будет действовать как обычно, как команда break.

Вы можете настроить, какие клавиши вы хотите использовать для "копировать" и "вставить", редактируя привязки клавиш. Если вы удалите эти привязки клавиш из файла settings.json, терминал по умолчанию будет использовать Ctrl + Shift + C и Ctrl + Shift + V. Это может быть особенно полезно для пользователей WSL, которым нужны свободные Ctrl + C и Ctrl + V для своих оболочек.

Вы также можете выбрать, какое форматирование копируется в буфер обмена вместе с символами новой строки с помощью действий "copyFormatting" и "singleLine", связанных с командой копирования. Полную документацию по командам интеграции с буфером обмена можно найти на нашем сайте документации.

Определение привязок клавиш и действий

Большая часть настраиваемых свойств внутри Windows Terminal зависит от привязок клавиш и действий. Команды внутри массива "actions" будут автоматически добавлены в вашу палитру команд. Если вы хотите также использовать их с привязками клавиш, вы можете добавить к ним «ключи», чтобы вызывать их с клавиатуры. Полный список всех возможных команд можно найти на странице действий нашего сайта документации.

Отправка команд input

Терминал Windows дает вам возможность отправлять input в вашу оболочку с привязкой клавиш. Это можно сделать с помощью следующей структуры внутри массива "actions" .

{ "command": {"action": "sendInput", "input": ""}, "keys": "" }

Отправка ввода в оболочку с помощью сочетания клавиш может быть полезна для часто выполняемых команд. Одним из примеров может быть очистка экрана:

{ "command": {"action": "sendInput", "input": "clear\r"}, "keys": "alt+k" }

Также может быть полезен переход к родительскому каталогу с привязкой клавиш.

{ "command": {"action": "sendInput", "input": "cd ..\r"}, "keys": "ctrl+up" }

Вы также можете использовать эту функцию для запуска сборок или тестовых сценариев.

Начальный каталог WSL

На данный момент Терминал Windows по умолчанию устанавливает начальный каталог профилей WSL в качестве папки профиля пользователя Windows. Чтобы настроить запуск вашего профиля WSL в папке ~, вы можете добавить следующую строку в настройки своего профиля, заменив DISTRONAME и USERNAME соответствующими полями.

"startingDirectory": "//wsl$/DISTRONAME/home/USERNAME"

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Hasp loader windows 10
  • Via vt1705 windows 10 driver
  • Elmedia player для windows
  • Как проверить 32 или 64 битная система на windows 10
  • Программы для отключения слежения windows