👨‍💻
Mike's Notes
  • Introduction
  • MacOs Setup
    • System Preferences
    • Homebrew
      • Usage
    • iTerm
      • VIM
      • Tree
      • ZSH
    • Visual Studio Code
    • Git
    • SSH Keys
  • DevOps Knowledge
    • SRE
      • Scaling Reliably
        • Splitting a Monolith into Microservices
      • Troubleshooting Common Issues
      • Service Level Terminology
      • Toil
      • Monitoring
      • Release Engineering
      • Best Practices
      • On-Call
      • Alerting
    • Containers
      • Docker
        • Best Practices
          • Image Building
          • Docker Development
        • CLI Cheat Sheet
      • Container Orchestration
        • Kubernetes
          • Benefits
          • Cheat Sheet
          • Components
          • Pods
          • Workload Resources
          • Best Practices
    • Developer Portal 👨‍💻
      • Solution Overview 🎯
      • System Architecture 🏗️
      • Implementation Journey 🛠️
      • Cross-team Collaboration 🤝
      • Lessons & Future 🎓
    • Provisioning
      • Terraform
        • Installation
        • Usage
    • Configuration Management
      • Ansible
        • Benefits
        • Installation
    • Build Systems
      • Bazel
        • Features
  • Security
    • Secure Software Engineering
    • Core Concepts
    • Security Design Principles
    • Software Security Requirements
    • Compliance Standards and Policies
      • Sarbanes-Oxley (SOX)
      • HIPAA and HITECH
      • Payment Card Industry Data Security Standard (PCI-DSS)
      • General Data Protection Regulation (GDPR)
      • California Consumer Privacy Act (CCPA)
      • Federal Risk and Authorization Management Program (FedRAMP)
    • Privacy & Data
  • Linux Fundamentals
    • Introduction to Linux
    • Architecture
    • Server Administration
      • User / Groups
      • File Permissions
      • SSH
      • Process Management
    • Networking
      • Diagrams
      • Browser URL Example
      • Network Topologies
      • Signal Routing
      • DNS (Domain Name System)
      • SSL (Secure Sockets Layer)
      • TLS (Transport Layer Security)
  • System Design
    • Process
    • Kafka
      • Advanced Topics
    • URL Shortener
Powered by GitBook
On this page
  • Installation
  • macOS integration
  • Useful Extensions

Was this helpful?

  1. MacOs Setup

Visual Studio Code

Visual Studio Code is a lightweight code editor with support for many programming languages through extensions

PreviousZSHNextGit

Last updated 1 year ago

Was this helpful?

Installation

To install the latest version, use Homebrew:

brew install --cask visual-studio-code

macOS integration

Launch VS Code from the .

After that, you can launch VS Code from your terminal:

  • code . will open VS Code in the current directory

  • code myfile.txt will open myfile.txt in VS Code

Useful Extensions

Python

  • - Python code highlighting

    To enable auto-formatting on "Save", i.e. ⌘ + S, configure the following:

    1. Change the default formatter to Black instead of Autopep8. Critical to avoid large diffs. Go to Preferences -> User Settings and update the setting python.formatter.provider to Black

    2. Enable Format on Save Setting: Editor: Format On Save setting on Code -> Preferences -> Settings

JavaScript

SQL

Markdown

GitLens

Docker

JSON

VS Code Icons

- Useful to check JavaScript errors and helps in auto-formatting the code

- JavaScript code formatter

- Read Markdown files in VSCode

- Supercharge the Git capabilities built into VSCode

- Create, manage, and debug images from within VSCode

- Infers types from sample JSON data, then outputs strongly typed models and serializers for working with that data in your desired programming language

- Launches a local development server with live reloading for both static and dynamic

- Adds unique icons to distinguish different file extensions (easier to glance through your directories)

command line
Python
ESLint
Prettier
PostgreSQL formatter
Markdown Preview
GitLens
Docker
Paste JSON as Code
Live Server
vscode-icons