Always Show Snippets on Top in Visual Studio - visual-studio

I have some snippets that work nicely, but the suggestion in the info box only shows up in 'simple' context (e.g. beginning of the line, etc.), rarely when I'm nested (e.g. as function parameters). However, when I do press on "Show more results (Ctrl+J)", it does show up (and works, of course).
How do I get my snippets to always show and always show on top? Ironically, this is easily done in Visual Studio Code ("editor.snippetSuggestions": "top"), but I can't get it to work in Visual Studio 2022.
Thank you in advance!

Related

Delphi IDE - Enable highlighting of selected variable (like Visual Studio)

In Visual Studio when I highlight a function or variable all other instances of it also get highlighted. I find this to be very useful. Does anyone know if Delphi can do this somehow? When using the search in Delphi it highlights all found instances, so sometimes I quickly copy and search but this is a lot slower than just clicking the text.
Visual Studio highlighting:

how to get rid of "unkown scope" pull-down lists in 2010 Visual Studio/C++?

I just installed MS Visual Studio 2010, incl Visual C++, and by default at the top of each file editor window, are two pull-down lists, one with single item: "(Unknown Scope)" , and another one empty.
How to get rid of these lists altogether?
It may be "IntelliSense" - but, I disabled IntelliSense, and the lists are still there...
I also went through all the options, nothing else seems to help.
Well, I restarted Visual Studio and now they are gone. Not sure why.

How do I print the screen layout in Visual Studio 2012 (Windows Forms)

I have a complex form that I created in Visual Studio 2012; I want to print out that form exactly as it shows in the designer using Visual Studio 2012 (not while the program/form is running). Is this possible?
I know I can just do a screen shot, but I will need to be doing this quite often and would prefer a simple, direct way to do this.
I'm not sure if there's anything within visual studios that does exactly what you're suggesting.
I would definitely recommend snagit. We use it at work quite a bit when putting together internal documentation.
http://www.techsmith.com/snagit.html
You just click and drag and it saves everything in one location. You can also do a quick click on the title bar of the vs window and it will save a screenshot of everything within that window. It's a lot easier than constantly pressing the print button and then pasting it somewhere.
Or you could write your own program that does exactly what you need it to do.

How to place code snippets within Visual Studio 2010 Toolbox window?

I've really enjoyed Anders Hejlsberg presentation at BUILD 2011 and it's not the first time that I notice someone having a collection of code snippets available within Visual Studio's Toolbox window, so given that all the searches I've performed so far pointed me to how to deal with IntelliSense snippets, I was wondering if anyone knows how to achieve this?
You just need to copy the code to the toolbox. A simple selection of the code, and a drag and drop to the toolbox just make it available. It will not be deleted until you delete it (at least that never happens to me by itself)..
This is what you need?

Keyword highlighting on selection in Visual Studio 2008

A little while ago I managed to get Visual Studio 2008 (C++) into a state where, if I would select a keyword (or any symbol for that matter), by either double clicking on it or highlighting it, all other instances of that symbol within the current file would become highlighted too.
This was a really useful feature.
Since then it's gone away, and I don't know how to get it back.
Please help.
#Sander - that'll be it. Thanks!
I think you've installed RockScroll. It also lights them up in the graphical scrollbar (its main feature)
I use MetalScroll, it's like RockScroll only better; it doesn't interfere with Resharper (a VS must-have) and you can set it up to only highlight if you hold down 'alt' when you double-click.
There is something called "WordLight" by Mikhail Nasyrov.
An add-in for Visual Studio 2008 that highlights all occurrences of a selected text.
It searches and highlights substrings that are currently selected in a text editor.
Can be found at below link
WordLight
https://marketplace.visualstudio.com/items?itemName=MikhailNasyrov.WordLight

Resources