Setting Up Visual Studio Code

Introduction

This is one of a series of posts where I document software configurations for personal reference. This post documents the configurations for Visual Studio Code.

Installation

Although vscode can be installed from Ubuntu software center, some issues (perhaps relating to dependencies) may arise and prevent input methods such as ibus and fcitx from working properly. To work around it, instal vscode using the packages provided by the official site: https://code.visualstudio.com/.

Extensions

  • shellcheck:
    • In shell: sudo apt install shellcheck.
    • In vscode: ctrl + p -> ext install timonwong.shellcheck.
  • shell-format:
    • Download shfmt executable binary, rename it as shfmt, save it to /local/usr/bin/, and make it executable.
    • In vscode: ctrl + p -> ext install foxundermoon.shell-format.
  • Remote Development:
    • In vscode: ctrl + p -> ext install ms-vscode-remote.vscode-remote-extensionpack.
  • plantuml:
    • In shell: sudo apt install default-jdk graphviz.
    • In vscode: ctrl + p -> ext install jebbs.plantuml.

Settings

  1. Download this file.
  2. Move the file to ~/.config/Code/User/settings.json.

Keybindings

  1. Download this file.
  2. Move the file to ~/.config/Code/User/keybindings.json.

Related

Next
Previous
comments powered by Disqus