Visual Studio Code Distilled: Evolved Code Editing for Windows, macOS, and Linux, 3rd Edition
Book information
Description
Use Visual Studio Code to write and debug code quickly and efficiently on any platform, for any device, using any programming language, and on the operating system of your choice. Visual Studio Code is an open source and cross-platform development tool that focuses on code editing across a variety of development scenarios, including web, mobile, and cloud development. This third edition has been updated to match the latest releases of the environment. Additional updates relate to .NET 7 and explain how to consume AI services from code you write in Visual Studio Code. This new edition is also refreshed with the latest updates, such as enhanced merge editor, creating extensions, support for the Julia language, and much more. The book teaches you how to be immediately productive with Visual Studio Code, from the basics to some of the more complex topics. You will learn how to work on individual code files, complete projects, and come away with an understanding of advanced code-editing features that will help you focus on productivity, and source code collaboration with Git. What You Will Learn Get started with practical guidance on Visual Studio Code, including expansive guidance on writing apps with C# and Python Understand how to edit individual files and how to work with folders by working on the latest workspace trust and multi-root workspaces Debug code on multiple platforms through real-world guidance, such as working under corporate networks Package code into Docker containers and deploy these to Azure Acquire valuable tips, tricks, and suggestions from hard-earned, real-world experience to be more productive Who This Book Is For All developers (including jаvascript, Java, NodeJS), not just those with a Microsoft background, who will benefit from learning and using VS code as a cross-platform and cross-language tool Table of Contents About the Author Acknowledgments Introduction Chapter 1: Introducing Visual Studio Code Visual Studio Code, a Cross-Platform Development Tool When and Why Visual Studio Code Installing and Configuring Visual Studio Code Installing Visual Studio Code on Windows Installing Visual Studio Code on macOS Installing Visual Studio Code on Linux Localization Support Updating Visual Studio Code Previewing Features with Insiders Builds Visual Studio Code on Web Summary Chapter 2: Getting to Know the Environment The Welcome Page The Code Editor Reordering, Resizing, and Zooming Editor Windows The Status Bar The Activity Bar The Side Bar The Explorer Bar The Outline View The Timeline View The Search Tool Searching in the Active File The Git Bar The Run and Debug Bar The Extensions Bar The Accounts Button The Settings Button Navigating Between Files The Command Palette The Panels Area The Problems Panel The Output Panel The Debug Console Panel Working with the Terminal Summary Chapter 3: Language Support and Code Editing Features Language Support Working with C# and C++ Working with Python Working with Julia Working with Go Basic Code Editing Features Working with Text Syntax Colorization Delimiter Matching and Text Selection Code Block Folding Multicursors Reusable Code Snippets Word Completion Minimap Mode Sticky Scroll Whitespace Rendering and Breadcrumbs Markdown Preview Evolved Code Editing Working with IntelliSense Parameter Hints Inline Documentation with Tooltips Go to Definition and Peek Definition Go to Implementation and Peek Implementations Finding References Renaming Symbols and Identifiers Live Code Analysis Hints About IntelliCode Summary Chapter 4: Working with Files and Folders Visual Studio Code and Project Systems Working with Individual Files Creating Files Language Autodetection File Encoding, Line Terminators, and Line Browsing Working with Folders and Projects Opening a Folder Opening .NET Solutions Opening JavaScript and TypeScript Projects Opening Loose Folders Working with Workspaces Creating Workspaces Opening Existing Workspaces Workspace Structure Security: Workspace Trust Configuring Workspace Trust Summary Chapter 5: Customizing Visual Studio Code Customizations and Extensions Explained Customizing Visual Studio Code Theme Selection Customizing the Environment Understanding User Settings Behind the Scenes: The settings.json File A Real-World Example: Working with Proxies Privacy Settings: Telemetry Synchronization Settings Understanding Workspace Settings Customizing Keyboard Shortcuts Creating Reusable Profiles Summary Chapter 6: Installing and Managing Extensions Installing Extensions Extension Recommendations Useful Extensions Managing Extensions Configuring Extensions Writing Your First Extension Setting Up the Environment Fixing PowerShell Script Problems Creating an Extension Developing the Extension Running the Extension Packaging Extensions Extension Development Summary Summary Chapter 7: Source Control with Git Source Control in Visual Studio Code Downloading Other Source Control Providers Managing Repositories Initializing a Local Git Repository Creating a Remote Repository Handling File Changes Staging Changes Managing Commits Working with the Git Command-Line Interface Creating and Managing Branches Switching to a Different Branch Merging from a Branch Resolving Merge Conflicts Hints About Rebasing Branches Deleting Branches Adding Power to the Git Tooling with Extensions Git History GitLens GitHub Pull Requests and Issues Working with Azure DevOps Creating a Team Project Connecting Visual Studio Code to a Remote Repository Summary Chapter 8: Automating Tasks Understanding Tasks Tasks Types Running and Managing Tasks The Default Build Task Auto-Detected Tasks Configuring Tasks Task Example: Compiling Pascal Source Code Multiple Tasks and Default Build Tasks Understanding tasks.json Properties Understanding Substitution Variables Operating System–Specific Properties Reusing Existing Task Templates Understanding Problem Matchers Running Files with a Default Program Summary Chapter 9: Building and Debugging Applications Creating Applications The Status of Microsoft .NET Setting Up .NET for VS Code Development Creating .NET Projects Creating Projects on Other Platforms Debugging Your Code Configuring the Debugger Managing Breakpoints Debugging an Application Evaluating Expressions The Call Stack The Debug Console Panel Configuring Debug Options Summary Chapter 10: Building Applications with Python Chapter Prerequisites Creating Python Applications Running Python Code Code Editing Features for Python Enhanced Word Completion with IntelliSense Understanding Function Parameters with Parameter Hints Quickly Retrieving Type Definitions Finding References Renaming Symbols Finding Code Issues with Linters Advanced Code Editing with Pylance Managing Pylance Settings Running Python Scripts Summary Chapter 11: Deploying Applications to Azure Introducing Azure Extensions Deploying Web Applications Installing Extensions Signing In to Azure Subscriptions Publishing Web Applications Creating and Deploying Azure Functions Configuring Visual Studio Code Creating Azure Functions Deploying Azure Functions Deploying Docker Images Docker Prerequisites Creating the Application Image Uploading the Application Image to a Container Registry Deploying the Docker Image to Azure Summary Chapter 12: Consuming AI Services Introducing Azure for AI General Considerations Introducing Computer Vision Setting Up Computer Vision Services Retrieving the Service Keys Consuming AI Services with .NET Setting Up Variables and Constants Creating Authenticated Service Clients Executing Image Analysis Running the Application Using the Debugging Tools Consuming AI Services with JavaScript Setting Up Variables and Constants Creating Authenticated Service Clients Executing Image Analysis Coding and Debugging Tools in Action Running the Application Consuming AI Services with Python Setting Up Variables and Constants Creating Authenticated Service Clients Executing Image Analysis Coding and Debugging Tools in Action Running the Application Summary Index Capture2.PNG
Similar books
Visual Studio Code Distilled: Evolved Code Editing for Windows, macOS, and Linux
2018 · PDF
Visual Studio Code Distilled: Evolved Code Editing for Windows, macOS, and Linux
2018 · EPUB
Visual Studio Code Distilled: Evolved Code Editing for Windows, macOS, and Linux
EPUB
Visual Studio Code Distilled: Evolved Code Editing for Windows, macOS, and Linux
2021 · PDF
Visual Studio Code Distilled : Evolved Code Editing for Windows, macOS, and Linux
EPUB
Xamarin.Forms Succinctly
2021 · PDF
Visual Studio Code Distilled: Evolved Code Editing for Windows, macOS, and Linux
2021 · EPUB
Visual Studio Code Distilled: Evolved Code Editing for Windows, macOS, and Linux
2021 · PDF