Skip to content

Latest commit

 

History

History

Caret_Fish_Eye

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Caret Fish Eye Provider Sample

Demonstrate how to implement the Line Transformation API in Visual Studio.

  • Technologies: Visual Studio 2015 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.

image

Requirements

Visual Studio 2015

Get all samples

Clone the repo (How to):

git clone https://github.com/Microsoft/VSSDK-Extensibility-Samples.git

Run the sample

  1. To run the sample, hit F5 or choose the Debug > Start Debugging menu command. A new experimental instance of Visual Studio will launch.
  2. Once loaded, open any file in the Text Editor
  3. Move the text caret around the screen
  4. 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