본문 바로가기

프로그래밍 툴/vs code

vs code

Installation

sudo dpkg -i code_1.26.0-1534177765_amd64.deb

Shortcuts

Keyboard Shortcut: ctrl+shift+p
line break: \
markdown render: ctrl+shift+v
Toggle the terminal window: `CTRL+``
CTRL+SHIFT+V - Preview Markdown

Set conda environment per project

python select interpreter

Custom VS Code Snippets (Reference)

File > Preferences (Code > Preferences on macOS) > User Snippets
# or
Ctrl + Shift + p > User snippets

# Select an appropriate language or global
# Fill in snippet patterns in JSON
# For example,

{
    "Markdown Syntax Highlight": {
        "prefix": [
            "``",
            "```",
            "````"
        ],
        "body": [
            "```$1",
            "$0",
            "```"
        ],
        "description": "Markdown Syntax Highlight"
    }
}

# After typing a defined prefix,
# Ctrl + Space and Enter
# or Tab in which case make sure "editor.tabCompletion": "on",