Skip to content

Latest commit

 

History

History
166 lines (123 loc) · 3.49 KB

c04.configure-vscode-that-like-atom-editor.md

File metadata and controls

166 lines (123 loc) · 3.49 KB

C04.Configure a vscode

1. Needed Package

1-1. Install VSCode

sudo pacman -S code
#(install VSCode, package name is "visual studio code oss" on the ubuntu )

1-2. Install font: PT Mono

yaourt -S ttf-google-fonts-git # for PT Mont

1-3. Or go here to download ttf file of PT Mono

Simply install "PTM55F.ttf" and it will suffice

download_PT_mono_site

1-4. Others font for suggestion

1-4-1. You can install it via yauort on the archlinux

yaourt -S ttf-ms-fonts # for Courier New, Georgia, Times New Roma
yaourt -S ttf-meslo # for meslo
yaourt -S ttf-monaco # for monaco

1-4-2. Or download it on these website

Courier New : download_Courier_New

Menlo download_Menlo

Monaco download_Monaco

2. Needed Package of VSCode package

akamud.vscode-theme-onedark
auchenberg.vscode-browser-preview
austin.code-gnu-global
cschlosser.doxdocgen
DavidAnson.vscode-markdownlint
EFanZh.graphviz-preview
frinkr.pdf
geeklearningio.graphviz-markdown-preview
hars.CppSnippets
James-Yu.latex-workshop
jduponchelle.rainbow-end
JScearcy.rust-doc-viewer
ms-python.python
ms-vscode.cpptools
mshr-h.veriloghdl
puorc.awesome-vhdl
rjyoung.vscode-modern-vhdl-support
rust-lang.rust
shd101wyy.markdown-preview-enhanced
Stephanvs.dot
twxs.cmake
vscode-icons-team.vscode-icons
yhpnoraa.beauty
yzane.markdown-pdf
yzhang.markdown-all-in-one
akamud.vscode-theme-onedark
auchenberg.vscode-browser-preview
austin.code-gnu-global
cschlosser.doxdocgen
DavidAnson.vscode-markdownlint
EFanZh.graphviz-preview
frinkr.pdf
geeklearningio.graphviz-markdown-preview
hars.CppSnippets
James-Yu.latex-workshop
jduponchelle.rainbow-end
joaompinto.vscode-graphviz
JScearcy.rust-doc-viewer
ms-python.python
ms-vscode.cpptools
mshr-h.veriloghdl
puorc.awesome-vhdl
rjyoung.vscode-modern-vhdl-support
rust-lang.rust
shd101wyy.markdown-preview-enhanced
Stephanvs.dot
twxs.cmake
vscode-icons-team.vscode-icons
yhpnoraa.beauty
yzane.markdown-pdf
yzhang.markdown-all-in-one

3. Configure font

3-1. Open file -> preference -> search "font" ->go to "Editor: Font Family"

3-2. Paste this to "Editor: Font Family"

'PT Mono', Menlo, Monaco, 'Courier New', monospace

3-3. Paste above to "Terminal" -> "Font Family" too

4. Pitch Black Theme

in the setting, set window.titleBarStyle as custom

5. Minimap and integrated terminal are broken

You may look this bug:

mini_map_bug_pic

Most of these issues I've been closing but I'll keep this one open for a bit so it's more discoverable.

The problem is related to your graphics drivers and/or Chromium not correctly blacklisting your configuration. Your current options are:

5-0. Update your graphics drivers

5-1. Disable canvas usage in terminal and minimap with these settings

"terminal.integrated.rendererType": "dom",
"editor.minimap.enabled": false

5-2. Launch vscode using code --disable-gpu

cd /usr/share/applications
sudo vim code-oss.desktop

replace

Exec=code-oss --unity-launch %F

with

Exec=code-oss  --disable-gpu --unity-launch %F

5-3. Wait until bug fixed

6. Add default standard into settings.json

Otherwise filesysten of c++17 cannot be lint in some env(e.g. Linux)

"C_Cpp.default.cppStandard": "c++17"