Giter VIP home page Giter VIP logo

quadspinner / highlighter Goto Github PK

View Code? Open in Web Editor NEW
32.0 2.0 5.0 1.08 MB

An arbitrary highlighter that lets you pick individual class, parameter, or other element names to highlight across your projects. It makes it easier to find and identify objects inside your project. You can also use it for comment annotations, dividers, and more.

Home Page: https://marketplace.visualstudio.com/items?itemName=DaxPandhi.Highlighter1

License: MIT License

C# 100.00%
visual-studio visual-studio-extension extension c-sharp highlight highlighting

highlighter's Introduction

QuadSpinner Highlighter for Visual Studio 2022

An arbitrary highlighter that lets you pick individual class, parameter, or other element names to highlight across your projects. It makes it easier to find and identify objects inside your project. You can also use it for comment annotations, dividers, and more.

Free download on Visual Studio Marketplace

Features

  • Highlight any arbitrary term
  • 4 different highlight shapes
  • Solution-scoped rules (Source control friendly)
  • Case sensitive and partial matches
  • Toggle highlights easily
  • Performant even on older machines and VMs

Requires Visual Studio 2022 Community Edition or higher. It should work in all text editor surfaces.

You can pick any word. Highlighter does not care about its meaning to the programming language, just what is on the screen.

Creating Highlights

To create a highlight, select the desired word or phrase and press Ctrl + Num Plus. Or you can right-click the selection and click Create/Edit Highlight.

If the selection is an existing highlight, then you will be able to edit it. If it is a new one, you get to define its shape.

You can choose the tag shape, optional blur, and color. The Highlight Editor window shows you a preview to help you choose the right shape. You can also choose whether to allow partial matches or toggle case sensitivity.

The Global Rule option allows you to declare a rule globally across all solutions. Unchecking the option creates a rule scoped to the current solution and made portable for transport. Such rules are stored in the ~\.vs\Highlights.xml and can be checked into source control for easy sharing.

For an existing rule, you can also uncheck "Rule is Active" to disable the rule without deleting it, or select Delete to remove the permanently.

Highlight Shapes

Highlighter can create 4 different shapes, 4 option blur levels, using 40 different colors. You can also enter a hex value manually in the Options. These colors are chosen specifically to give you decent visibility whether using a dark or light theme.

There are 12 built in rules for creating dividers. //1 through //6 and //# through //###### create full line dividers. You modify these rules or make your own.

Dark Light

Options

The Options let you edit the rules en mass, as well as use color values not in the default palette. You can delete highlights here.


Contributors

@bartosz-jarmuz

highlighter's People

Contributors

daxpandhi avatar

Stargazers

 avatar Kaan Faruk Kınalı avatar Med Boulmers avatar  avatar  avatar Tim avatar  avatar  avatar Wayne Munro avatar Ivan Becerra avatar Markus Johansson avatar Balazs Kereszturi avatar  avatar Hervé  avatar Stefano D'Alessi avatar  avatar Nolram avatar Daniel Oliveira avatar Pawel Kasperek avatar Pierre avatar Manrike Villalobos Báez avatar Elias Mascheroni avatar  avatar Luiz Felipe Escandiuzzi avatar Adhemar avatar Leo avatar  avatar 고형호 avatar Abdallh Bin Hatheem Ali  avatar Milan Jovanović avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

highlighter's Issues

Quick Remove Rule button

  1. We need a "Remove" button in the "Modify Hilight Rule" window, there we can remove easily.
  2. Rules added with right click menu should be saved to "Solution Rules" not to "Global Rules"
  3. When we add new rule, the shape option should be defaulted to the last chosen one

Regex or Glob for finding lines

This will be a short one and i'm sure it could have a heavy impact on performance if done wrong.

Please add Regex or Glob to find lines...

Also ... can you make Full lines to be actual full lines? (Including the whitespace in front)

Thanks for a great plugin

Solution-level highlights

  • Store in .vs folder
  • Load data from local folder
  • Specify "Local" or "Global" in Tag object
  • Do not persist Local in Global store

[Feature Request] More customization options

I was wondering if it's already possible to do the following things with this extension (maybe I missed one of them)

  • Change color of both the background and the foreground
  • Change font weight of highlighted word/line
  • Use a flat color instead of the transparent color for both background and underline

Ability to select substrings of words

Hello,
This is an enhancement idea - at the moment the highlighter only highlights full words.
Would it be possible to allow highlighting parts of the words too?

For example, create a rule for Foo should highlight:

  1. IAbstractFooFactory
  2. FooProcessor
  3. _listOfInactiveFoo = new();

etc.
Ideally, separate rules for Foo and Bar should result in two highlights in one word, e.g.
var percentageOfFooInBarCollection = new();

This is useful in large codebases where you add 'a similar concept' as something that exists already (e.g. Foo) and there are many places where this Foo is used, so they should all stand out nicely.

Kind regards,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.