Getting Started with Visual Studio Code

Aug 5, 2024

Notes on Visual Studio Code (VS Code) Lecture

Introduction to VS Code

  • VS Code is a popular code editor used globally.
  • It is lightweight and has low system requirements, making it suitable for beginners.
  • Different from Visual Studio IDE, which has more features.
  • Recommended to download from code.visualstudio.com (Windows).

Installation Process

  • Download and run the installer (takes about a minute).
  • Follow standard installation steps (accept terms, privacy agreements).
  • After installation, access the welcome screen with walk-throughs.

Basic Customization

Change Theme

  • To change the theme, access settings and choose from:
    • Dark mode
    • Light mode
    • High contrast options
  • Walk-throughs are available to help you adjust settings.

Extensions for Language Support

  • Extensions can be added for various programming languages like JavaScript, C++, etc.
  • Browse language extensions through the extensions panel.

Settings and Syncing

Tune Settings

  • Change settings like autosave and line wrapping (WDRP).
  • Sync settings across devices by signing in (GitHub recommended).

Command Palette

  • Use command palette for quick shortcuts (e.g., clear console, open terminal).

Creating and Managing Files

File Management

  • Create, open, and manage files from the file tab:
    • New file (e.g., index.js for JavaScript).
    • Open existing files and folders.
    • Organize files within folders for better structure.

IntelliSense Feature

  • VS Code provides suggestions as you type, enhancing coding efficiency.

Working with the Editor

Navigating the Editor

  • Use split editor features for multitasking.
  • Manage open files in the editor with clear organization.

Keyboard Shortcuts and Productivity Tips

  • Customize keyboard shortcuts for familiar controls (especially if migrating from other editors).
  • Use shortcuts for common actions (e.g., save, undo, redo).

Terminal and Debugging

Integrated Terminal

  • Built-in terminal available for executing commands and running scripts.
  • Future detailed session planned to cover terminal functionalities.

Debugging Features

  • Set breakpoints and debug code to step through execution.
  • Watch variables and monitor execution flow during debugging sessions.

Conclusion

  • The lecture concludes with encouragement to explore VS Code further.
  • Support available through Patreon and Discord for additional resources and community engagement.

Additional Resources

  • Subscribe on YouTube for further tutorials and tips.
  • Follow on Twitch for live coding sessions.