![]() ![]() ![]() Inside the constructor, change the name of the adornment layer from KeyBindingTest to PurpleCornerBox: Use the light bulb that appears in the left margin to make the other appropriate changes. In the KeyBindingTest class file, change the class name to PurpleCornerBox. For more information, see Create an Extension with an Editor Item Template.Īdd the following references and set CopyLocal to false: (In the New Project dialog, select Visual C# / Extensibility, then VSIX Project.) Name the solution KeyBindingTest.Īdd an Editor Text Adornment item template to the project and name it KeyBindingTest. Create a Managed Extensibility Framework (MEF) ProjectĬreate a C# VSIX project. For more information, see Install the Visual Studio SDK. You can also install the VS SDK later on. It's included as an optional feature in Visual Studio setup. Starting in Visual Studio 2015, you don't install the Visual Studio SDK from the download center. This walkthrough is based on the viewport adornment editor template, and it allows you to add the adornment by using the + character. The following walkthrough shows how to add a view adornment to a text view by using a shortcut key. You can respond to shortcut keys in your editor extension. Applies to: Visual Studio Visual Studio for Mac Visual Studio Code ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |