Download Full Visual Studio Code Distilled: Evolved Code Editing for Windows, macOS, and Linux 2nd ed. Alessandro Del Sole PDF All Chapters

Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

Get ebook downloads in full at ebookmeta.

com

Visual Studio Code Distilled: Evolved Code Editing


for Windows, macOS, and Linux 2nd ed. Alessandro
Del Sole

https://ebookmeta.com/product/visual-studio-code-distilled-
evolved-code-editing-for-windows-macos-and-linux-2nd-ed-
alessandro-del-sole/

OR CLICK BUTTON

DOWNLOAD NOW

Explore and download more ebook at https://ebookmeta.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Visual Studio Code Distilled - Third Edition Alessandro


Del Sole

https://ebookmeta.com/product/visual-studio-code-distilled-third-
edition-alessandro-del-sole/

ebookmeta.com

Visual Studio Code Succinctly 1st Edition Alessandro Del


Sole

https://ebookmeta.com/product/visual-studio-code-succinctly-1st-
edition-alessandro-del-sole/

ebookmeta.com

Visual Studio for Mac Succinctly Alessandro Del Sole

https://ebookmeta.com/product/visual-studio-for-mac-succinctly-
alessandro-del-sole/

ebookmeta.com

Dancing to Forever Billionaire Doms of Crash 2 1st


Edition Amarra Skye

https://ebookmeta.com/product/dancing-to-forever-billionaire-doms-of-
crash-2-1st-edition-amarra-skye/

ebookmeta.com
Insight Guides Pocket Japan Travel Guide Japan 2nd
Edition Insight Guides

https://ebookmeta.com/product/insight-guides-pocket-japan-travel-
guide-japan-2nd-edition-insight-guides/

ebookmeta.com

Ego Sum Corpus Anima Fabula 1st Edition Jean Luc Nancy

https://ebookmeta.com/product/ego-sum-corpus-anima-fabula-1st-edition-
jean-luc-nancy-2/

ebookmeta.com

Statistics using R an integrative approach 2nd Edition


Sharon L. Weinberg

https://ebookmeta.com/product/statistics-using-r-an-integrative-
approach-2nd-edition-sharon-l-weinberg/

ebookmeta.com

Lose You to Find Me 1st Edition Erik J. Brown

https://ebookmeta.com/product/lose-you-to-find-me-1st-edition-erik-j-
brown-2/

ebookmeta.com

Love Half Baked In Praise of Older Women 1st Edition Bree


Weeks

https://ebookmeta.com/product/love-half-baked-in-praise-of-older-
women-1st-edition-bree-weeks-2/

ebookmeta.com
Codename Diesel Soldiers for Christmas 1st Edition Khloe
Summers

https://ebookmeta.com/product/codename-diesel-soldiers-for-
christmas-1st-edition-khloe-summers/

ebookmeta.com
Alessandro Del Sole

Visual Studio Code Distilled


Evolved Code Editing for Windows, macOS, and
Linux
2nd ed.
Alessandro Del Sole
Cremona, Italy

Any source code or other supplementary material referenced by the


author in this book is available to readers on GitHub via the book’s
product page, located at www.apress.com/9781484269008. For more
detailed information, please visit https://www.apress.com/source-
code.

ISBN 978-1-4842-6900-8 e-ISBN 978-1-4842-6901-5


https://doi.org/10.1007/978-1-4842-6901-5

© Alessandro Del Sole 2021

This work is subject to copyright. All rights are solely and exclusively
licensed by the Publisher, whether the whole or part of the material is
concerned, specifically the rights of translation, reprinting, reuse of
illustrations, recitation, broadcasting, reproduction on microfilms or in
any other physical way, and transmission or information storage and
retrieval, electronic adaptation, computer software, or by similar or
dissimilar methodology now known or hereafter developed.

The use of general descriptive names, registered names, trademarks,


service marks, etc. in this publication does not imply, even in the
absence of a specific statement, that such names are exempt from the
relevant protective laws and regulations and therefore free for general
use.

The publisher, the authors and the editors are safe to assume that the
advice and information in this book are believed to be true and accurate
at the date of publication. Neither the publisher nor the authors or the
editors give a warranty, expressed or implied, with respect to the
material contained herein or for any errors or omissions that may have
been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.

This Apress imprint is published by the registered company APress


Media, LLC part of Springer Nature.
The registered company address is: 1 New York Plaza, New York, NY
10004, U.S.A.
To my wife Angelica, you mean everything to me.
Introduction
One of the most common requirements in software development today
is building applications and services that run on multiple systems and
devices, especially with the continued expansion of cloud and artificial
intelligence services.
Developers have many options to build cross-platform and cross-
device software, from languages to development platforms and tools.
However, in most cases such tools rely on proprietary systems,
therefore creating strong dependencies. Moreover, most development
tools target specific platforms and development scenarios. Microsoft
Visual Studio Code makes a step forward, by providing a fully featured
development environment for Windows, macOS, and Linux that not
only offers advanced coding features but also integrated tools that span
across the entire application life cycle from coding to debugging to
team collaboration.
With .NET 5 recently released and with .NET MAUI coming shortly,
Visual Studio Code becomes even more important to support cross-
platform development on multiple operating systems. In this book,
developers with any skill will learn how to leverage Visual Studio Code
to target scenarios such as web, cloud, and mobile development with
the programming language of their choice, providing guidance to build
apps for any system and any device.
Acknowledgments
Thanks to Joan Murray, Jill Balzano, Laura Berendson, and everyone
else at Apress for the opportunity and the great teamwork on this book.
Special thanks to the technical editor, Damien Foggon, who
contributed to the quality and accuracy of the contents.
Special thanks to my wife Angelica, who understands and never
complains about the time I spend on writing books.
Table of Contents
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
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 Search Tool
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++
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
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
Summary
Chapter 4:​Working with Files and Folders
Visual Studio Code and Project Systems
Working with Individual Files
Creating Files
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
Summary
Chapter 5:​Customizing Visual Studio Code
Customizations and Extensions Explained
Customizing Visual Studio Code
Theme Selection
Customizing the Environment
Customizing Keyboard Shortcuts
Summary
Chapter 6:​Installing and Managing Extensions
Installing Extensions
Extension Recommendations
Useful Extensions
Managing Extensions
Configuring Extensions
Hints About Extension Authoring
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
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 and Team Foundation Server
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
Running Files with a Default Program
Summary
Chapter 9:​Building and Debugging Applications:​.​NET 5 and Other
Platforms
Creating Applications
Introducing .​NET 5
Creating .​NET 5 Projects
Creating Projects on Other Platforms
Debugging Your Code
Configuring the Debugger
Managing Breakpoints
Debugging an Application
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 into Azure Subscriptions
Publishing Web Applications
Creating and Deploying Azure Functions
Configuring Visual Studio Code
Creating Azure Functions
Deploying Azure Functions
Summary
Index
About the Author
Alessandro Del Sole
is Senior Software Engineer for a healthcare company, building mobile
apps for doctors and dialysis patients. He has been in the software
industry for almost 20 years, focusing on Microsoft technologies such
as .NET, C#, Visual Studio, and Xamarin. He has been a trainer,
consultant, and a Microsoft MVP since 2008 and is the author of many
technical books. He is a Xamarin Certified Mobile Developer, Microsoft
Certified Professional, and a Microsoft Programming Specialist in C#.
Other documents randomly have
different content
prohibition against accepting unsolicited donations from donors in
such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot make


any statements concerning tax treatment of donations received from
outside the United States. U.S. laws alone swamp our small staff.

Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.

Section 5. General Information About Project


Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could be
freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose network of
volunteer support.

Project Gutenberg™ eBooks are often created from several printed


editions, all of which are confirmed as not protected by copyright in
the U.S. unless a copyright notice is included. Thus, we do not
necessarily keep eBooks in compliance with any particular paper
edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg Literary
Archive Foundation, how to help produce our new eBooks, and how
to subscribe to our email newsletter to hear about new eBooks.

You might also like