Introduction to creating a Visual Studio Extentsion

As I use a Text Editor, it going to make me want to customize. How i does Visual Studio customize with a creating original extention? Let's learn the basics.

Introduction

I wanted to customize an extension that provides key bindings for Emacs, so I decided to learn how to create an extension. First, you will learn how to create and debug a project.

Requirements:

Setup

Require Visual Studio SDK. The SDK could install Visal Studio Installer, so launch it.

./images/figure_12.png

Select Visual Studio 拡張機能の開発, then apply it.

./images/figure_13.png

Done.

Creating a extention

Select VSIX Project.

./images/figure_15.png

Add file.

./images/figure_17.png

Select Command in Extensibility.

./images/figure_18.png

Open .vsct file.

./images/figure_19.png

Move to L51, and write text into ButtonText.

./images/figure_20.png

Open Command1.cs, and move to L92.

./images/figure_21.png

Write text.

./images/figure_22.png

Run to debug. Then, click Hello in Tools.

./images/figure_23.png

Visual Studio will show dialog.

./images/figure_24.png

Conclusion

In this post which introduced how to create and debug an Visual Studio Extension project.

Referennces