Tags: vs-code, editor, cline, mcp, byok, ai, shortcuts Last updated: 2026-06-26

Visual Studio Code Cheatsheet

Quick Reference

CommandDescription
Ctrl+Shift+PCommand palette
Ctrl+PQuick file open
Ctrl+Shift+FSearch across files
Ctrl+`Toggle terminal
Ctrl+BToggle sidebar
Ctrl+Shift+XExtensions panel
Ctrl+K Ctrl+SKeyboard shortcuts
Ctrl+Shift+NNew window
Ctrl+K ZZen mode
F5Start debugging

Essential Editor Shortcuts

Navigation

Selection & Editing

Multi-Cursor

Command Palette Power Moves

Press Ctrl+Shift+P then type any of these:

Palette CommandWhat It Does
>Developer: Reload WindowReload VS Code (keeps state)
>Developer: Toggle Developer ToolsOpen Chromium DevTools
>Preferences: Open Keyboard ShortcutsSearchable shortcut editor
>Preferences: Open User Settings (JSON)Raw settings file
>Tasks: Run TaskRun a task from tasks.json
>Git: CloneClone a repo from the palette
>File: Compare Active File With…Diff two files
>Transform to UPPERCASECase transform

Prefix with > to filter commands, or drop > to search files.

Integrated Terminal

# Toggle: Ctrl+`
# New terminal: Ctrl+Shift+`
# Split terminal: Ctrl+Shift+5
# Switch panels: Alt+Left / Alt+Right
# Scroll: Ctrl+Up / Ctrl+Down
# Find in terminal: Ctrl+F

Terminal Tips

Cline (BYOK AI Agent)

Cline is a VS Code extension that lets you run AI coding agents with your own API key (BYOK — bring your own key). It supports Anthropic, OpenAI, OpenRouter, Google Gemini, and local models.

Setup

  1. Install from the Extensions panel (Ctrl+Shift+X).
  2. Search Cline (by saoudrizwan).
  3. Open Cline: click its icon in the activity bar (robot face).
  4. Choose your API provider and paste your key.
  5. Start prompting in natural language.

Provider Settings

# Anthropic (recommended)
Model: claude-sonnet-4-20250514
Base URL: https://api.anthropic.com/v1

# OpenRouter (multi-provider)
Model: openrouter/anthropic/claude-sonnet-4
Base URL: https://openrouter.ai/api/v1

# Google Gemini
Model: gemini-2.5-pro
Base URL: https://generativelanguage.googleapis.com/v1beta

# Local (via Ollama)
Model: codellama or deepseek-coder-v2
Base URL: http://localhost:11434/v1

Cline Keyboard Shortcuts

Cline Tips

MCP Servers (Model Context Protocol)

MCP servers give Cline (and compatible clients) access to external tools and APIs — databases, file systems, web services, PixelLab, etc.

How MCP Servers Connect to Cline

  1. Open Cline settings → MCP Servers tab.
  2. Click Configure MCP Servers.
  3. Servers are defined in a JSON file (cline_mcp_settings.json or .vscode/mcp.json at the workspace level).

Example: Local Python MCP Server

{
  "mcpServers": {
    "my-tools": {
      "command": "python",
      "args": ["-m", "my_mcp_server"],
      "cwd": "~/projects/my-mcp-server",
      "env": {
        "API_KEY": "${env:MY_API_KEY}"
      }
    }
  }
}

Example: Node.js MCP Server (stdio)

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/allowed/dir"
      ]
    }
  }
}

Example: Remote MCP Server (SSE / HTTP)

{
  "mcpServers": {
    "remote-api": {
      "url": "https://mcp.example.com/sse",
      "headers": {
        "Authorization": "Bearer ${env:REMOTE_TOKEN}"
      }
    }
  }
}

Debugging MCP Servers

Popular MCP Servers

Settings & Configuration

Key Settings Files

Useful Settings Snippets

{
  "files.autoSave": "onFocusChange",
  "editor.tabSize": 2,
  "editor.insertSpaces": true,
  "editor.minimap.enabled": false,
  "editor.renderWhitespace": "boundary",
  "editor.formatOnSave": true,
  "terminal.integrated.fontSize": 13,
  "files.watcherExclude": {
    "**/node_modules/**": true,
    "**/.git/objects/**": true
  },
  "editor.cursorBlinking": "phase",
  "editor.cursorSmoothCaretAnimation": "on"
}

Workspace & Project Tips

Recommended Extensions

Workspace File Exclusions

// .vscode/settings.json
{
  "search.exclude": {
    "**/dist/**": true,
    "**/build/**": true,
    "**/.next/**": true
  },
  "files.exclude": {
    "**/.git": true,
    "**/node_modules": true
  }
}

Snippets

Debugging

Launch Config (.vscode/launch.json)

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Launch Program",
      "program": "${workspaceFolder}/src/index.js"
    }
  ]
}

Tips