Skip to Main Content
Visual Studio Code
book

Visual Studio Code

by Bruce Johnson
September 2019
Intermediate to advanced content levelIntermediate to advanced
192 pages
6h 3m
English
Wiley
Content preview from Visual Studio Code

10Creating Your Own Extensions

WHAT'S IN THIS CHAPTER?

  • Understanding how to create a Visual Studio Code extension
  • Learning how to define the contributions made by your extensions
  • Integrating extensions into the existing Visual Studio Code user experience

As the previous chapter should have reinforced, Visual Studio Code is quite extensible, and third‐party authors (not to mention Microsoft) are taking advantage of that extensibility to create a wide range of useful extensions. But, almost inevitably, you will find things that are missing in Visual Studio Code or features you'd like added to help you or your team, so it makes sense to spend a bit of time looking at the details of how extensions are constructed.

The goal of this chapter is to walk you through the process of setting up a simple extension: examining the structure of an extension project, working with the different points of extension that are offered within Visual Studio Code, and considering how debugging an extension works.

GETTING STARTED

While it's certainly possible to write a Visual Studio Code extension from scratch, it's a lot easier to utilize Yeoman and a code generator that has been provided.

If you're unfamiliar with Yeoman, it is a scaffolding tool. Its purpose is to create the starting point for projects of various types. It's language agnostic, because it's not actually compiling anything. It just creates the directory structure, adds the appropriate files, and off you go. If you haven't installed ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming TypeScript

Programming TypeScript

Boris Cherny
The Complete Node.js Developer Course (3rd Edition)

The Complete Node.js Developer Course (3rd Edition)

Andrew Mead, Codestars By Rob Percival
Learning TypeScript

Learning TypeScript

Josh Goldberg

Publisher Resources

ISBN: 9781119588184Purchase book