Golang IDE

From 탱이의 잡동사니
Jump to navigation Jump to search

Overview

Golang IDE 팁 모음.

Visual studio code

settings.json

File -> Preferences -> Settings -> Extensions -> Scroll down and find "Edit in settings.json"

혹은

$HOME/.config/Code/User/settings.json

Showing the coverage

{
    "go.coverOnSave": true,
    "go.coverageDecorator": {
        "type": "gutter",
        "coveredHighlightColor": "rgba(64,128,128,0.5)",
        "uncoveredHighlightColor": "rgba(128,64,64,0.25)",
        "coveredGutterStyle": "blockgreen",
        "uncoveredGutterStyle": "blockred"
    },
    "go.coverOnSingleTest": true
}