Visual Studio Code Editor에서 사용되는 글꼴과 글꼴을 변경하는 방법은 무엇입니까?
최근 빌드에서 발표 된 Visual Studio Code editor ( https://code.visualstudio.com/ )를 사용해 보았습니다 . Windows와 Ubuntu에서 시도했습니다. Visual Studio Code Editor의 기본 글꼴이 코드 편집기를 선호하는 콘솔 라가 아님을 알 수 있습니다.
그렇다면 모든 환경 (Ubuntu, MAC OS 및 Windows)에서 Visual Studio Code Editor의 기본 글꼴은 무엇입니까? 어떻게 바꿀 수 있습니까?
Preferences
>로 이동하십시오 User Settings
. (또는 macOS 에서 Ctrl+ ,/ Cmd+ ,)
그런 다음 재정의하려는 설정을 JSON 객체 안에 입력 할 수 있습니다. 사용자 설정은 사용자마다 다릅니다. 현재 작업중인 프로젝트에 대한 작업 공간 설정을 구성 할 수도 있습니다.
예를 들면 다음과 같습니다.
// Controls the font family.
"editor.fontFamily": "Consolas",
// Controls the font size.
"editor.fontSize": 13
유용한 링크:
기본 설정에서 VS Code는 다음 글꼴 (14pt)을 내림차순으로 사용합니다.
- 모나코
- 멘로
- 콘솔 라
- "Droid Sans Mono"
- "인 콘솔 라타"
- "쿠리어 새로운"
- 고정 폭 (대체)
확인 방법 : VS 코드는 브라우저에서 실행됩니다. 첫 번째 버전에서는 F12를 눌러 개발자 도구를 열 수 있습니다. DOM을 검사하면 해당 코드 줄을 구성하는 여러 가지가 포함되어 있습니다. 이러한 범위 중 하나를 검사하면 font-family가 위의 목록에 불과하다는 것을 알 수 있습니다.
VSCode에서 "editor.fontFamily": ""
공백이면 글꼴 크기가 작동하지 않습니다. 크기를 변경하려면 글꼴 모음을 설정하십시오.
"editor.fontFamily": "Verdana",
또는 "editor.fontFamily": "Monaco",
실제로 원하는 글꼴 모음을 사용하십시오.
그런 다음 "editor.fontSize": 16,
작동해야합니다.
On my windows 8.1 machine default VS Code font is Consolas, but you can easily change the font in File->Preferences->User Preferences. setting.json file will be opened alongside with default settings file, from where you can take syntax and names for settings properties and set your own ones in settings.json.
The default fonts are different across Windows, Mac, and Linux. As of VSCode 1.15.1, the default font settings can be found in the source code:
const DEFAULT_WINDOWS_FONT_FAMILY = 'Consolas, \'Courier New\', monospace';
const DEFAULT_MAC_FONT_FAMILY = 'Menlo, Monaco, \'Courier New\', monospace';
const DEFAULT_LINUX_FONT_FAMILY = '\'Droid Sans Mono\', \'Courier New\', monospace, \'Droid Sans Fallback\'';
On Windows, the default settings are as follow (I never installed Monaco nor Menlo)
{
"editor.fontFamily": "Consolas",
"editor.fontSize": 14,
"editor.lineHeight": 19
}
Settings fontSize to 12 and lineHeight to 16 closely approximate Visual Studio set to Consolas with 10pt size. I could not get an exact match (VS Code font is slightly bolder) but close enough.
기본 글꼴을 결정하는 또 다른 방법 "editor.fontFamily"
은 설정에서 입력을 시작 하고 자동 채우기가 제안하는 내용을 보는 것입니다. Mac에서는 기본적으로 다음과 같이 표시됩니다.
"editor.fontFamily": "Menlo, Monaco, 'Courier New', monospace",
앤디 리가 위에서 말한 것을 확인합니다.
vscode를 엽니 다.
를 누릅니다 ctrl,.
설정은 "editor.fontFamily"
입니다.
Linux에서 글꼴 목록 (및 사용해야하는 이름)을 얻으려면 다른 쉘에서이를 실행하십시오.
fc-list | awk '{$1=""}1' | cut -d: -f1 | sort| uniq
글꼴이없는 경우 대체 값을 가지도록 글꼴 목록을 지정할 수 있습니다.
기본 창의 메뉴에서 도구-> 옵션으로 이동하십시오. 환경 컨테이너에서 글꼴 및 색상을 볼 수 있습니다. 원하는 글꼴과 색상을 선택할 수 있습니다.
'IT story' 카테고리의 다른 글
알림 클릭 : 활동이 이미 열려 있습니다 (0) | 2020.06.12 |
---|---|
Angular 2-this.router.parent.navigate ( '/ about')를 사용하여 다른 경로로 이동하는 방법? (0) | 2020.06.12 |
내 앱에서 파일 공유를 활성화하는 방법은 무엇입니까? (0) | 2020.06.12 |
Android 푸시 알림 : 알림에 아이콘이 표시되지 않고 흰색 사각형이 대신 표시됨 (0) | 2020.06.12 |
MySQL 열 정의를 변경하는 방법? (0) | 2020.06.12 |