Demonstrate how to implement the Line Transformation API in Visual Studio.
- Technologies: Visual Studio 2017 SDK
- Topics: Visual Studio Editor, VSX
Description
This sample extension for Visual Studio 2015 modifies the text editor using the Line Transformation API. The extension visually scales lines so that they gradually appear smaller as they get farther away from the text caret.
Requirements
Get all samples
Clone the repo (How to):
git clone https://github.com/Microsoft/VSSDK-Extensibility-Samples.git
Run the sample
- To run the sample, hit F5 or choose the Debug > Start Debugging menu command. A new experimental instance of Visual Studio will launch.
- Once loaded, open any file in the Text Editor
- Move the text caret around the screen
- Compare the text size of the line that the caret is currently on to the size of surrounding lines
Project Files
- AssemblyInfo.cs
This file contains assembly custom attributes.
- CaretFisheyeLineTransformSource.cs
This class derives from ILineTransformSource, and implements all of the functionality of Caret Fish Eye
- CaretFisheyeLineTransformSourceProvider.cs
This class a connector that produces the CaretFisheye LineTransformSourceProvider
Functional Tests
- Verify the sample builds in all configurations
- Verify that the sample was registered. The About box should list the product as installed
- Verify that lines visually change in size as the caret is moved about the screen
Related topics