Visual Studio 2022 Intellisense XML documentation started failing - visual-studio

I've been working on a long and convoluted C++ project in Visual Studio 2022, so I've been making sure to comment as much as possible and have been using the XML documentation summaries for most every function.
These summaries are supposed to show up in IntelliSense when writing the function, and then the parameter summaries should show up when in the spot for that parameter.
Up until today everything had been working pretty much fine, it was always finnicky, but mostly it worked. Today however it all stopped showing up, so I tried following some recommendations from past posts, turning on or off the generation of an XML file, parameter information for C++, and restarting Visual Studio. Nothing has fixed it.
I have managed to find a random portion of my code in which summaries show up for some reason, but even there they're the wrong ones.
Does anyone know of any way to fix this issue? I really need these summaries.
EDIT:
Here's a screenshot of my C++ Intellisense settings

You can check settings in Tools > Options >Text Editor >C/C++ > Advanced > Intellisense:
If it doesn’t work you can try to Reset all settings under Tools > Import and Export Settings

Related

Visual Studio Intellisense suggestions disappears immediately after coming up

I am using Visual Studio Community and Visual GDB to code and debug STM32 projects.
The problem:
When I type something that is known to Intellisense, (path, variable or anything really), the suggestions come up briefly and then immediately disappear therafter. For that split second I can see that Intellisense has the correct suggestions, but TAB or ENTER does not work since the suggestions disappear very quickly.
Does anyone know how to fix this?
Thank you
You might try to disable any extensions in Visual Studio.
I had the same problem, surfed around and read in some places that disabling extensions would work.
So I disabled them one by one and the problem was gone.

'Format code' and 'sort using' on save in Visual Studio 2022

I and my team spent the last few months defining rules about C# code formatting and style for our project, so we ended up with an .editorconfig file.
Moreover, we all installed the extension Productivity Power Tools, in order to format the code when saving the file (CTRL+S) rather than having to use the VS built-in feature Code Clean Up. We took this decision when we realized that the latter requires a special shortcut (CTRL+K, CTRL+E) and that every member of the team needs to set this setting locally, since there is no way to put it in the source control.
This way of working went great with VS 2019.
But, in the last month most members of the team upgraded to VS 2022 and the extension Productivity Power Tools 22 removed - apparently without any reason - the Format On Save and Remove and Sort Usings on save features.
We apparently solved this issue with the extension VSE-FormatDocumentOnSave - by setting Edit.FormatDocument Edit.RemoveAndSort in the Commands option. It seems to work great but our concern is the fact that this is not a Microsoft tool and who knows what will happen in the future.
So, since the code style and formatting rules are a concern for every team out there, I would like to know if anyone knows a better way to manage this, considering that we are a team of 20+ developers.
Starting from VS2022-Preview2, there is no need to additional extension to "format on-save", you just run a customized code cleanup that contains "Format document" action on-save:
Customize your cleanup profile to perform "Format document" action (if not already there), in Analyze > Code Cleanup > Configure Code Cleanup
Enable "Run code cleanup profile on save" in VS configuration Tools > Options > Text Editor > Code Cleanup
Bringing Code Cleanup on Save To Visual Studio 2022 17.1 Preview 2
Unfortunately code cleanup setting is not included to .editorconfig file neither to exported config file .vssettings that could be shared across a team, maybe it will be included in the future.
Some feature requests related to this:
visual studio 2019 allow import and export Configure Code Cleanup profile
Provide a way to share Code Cleanup profiles as related to EditorConfig
Code Cleanup and EditorConfig
"Format Document On Save" worked for me.
Configuration:
Why not try the Code Cleanup On Save extension by Mads Kristensen (who works for Microsoft). I have not used it myself but all his other VS extensions are awesome.
Edit: The 'clean on save' feature has been added to Visual Studio 17.1 which is in preview at the moment. So no extensions required.

Visual Studio 2017 IntelliSense not working for Fortran language with Intel Parallel Studio

I recently re-installed Visual Studio due to some issues with the integration with Intel Parallel Studio. After reinstalling both, the integration issues are gone, but now for some reasons I have two issues. One is minor: automatic outlining has been disabled by default, and I have to re-enable it every time I start VS using Edit > Outlining > Begin Automatic Outlining (or something similar). Annoying, but at least it works.
The second issue however is that IntelliSense is not working. Under Edit > IntelliSense, Toggle Completion Mode is grayed out. After reading the answer to Visual Studio C# IntelliSense not automatically displaying, I followed the instructions and went to Tools > Options > Text Editor > Fortran. However all three of the check boxes are grayed out. Is this a known issue and does anyone know how to fix it?
Since it is also related to the third party tool, I suggest you post the issue to the Intel® Visual Fortran Compiler forum, there you would get direct solution like this case:
https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/733588
In addition, a extension tool Fortran CodeNav which also add the IntelliSense feature, you could also use it in your side.
https://marketplace.visualstudio.com/items?itemName=TiemenSchreuder.FortranCodeNav

How to make Roslyn Syntax Visualizer Extension work?

When Roslyn installed, it comes with a couple of great demo tools. Firstly, the most valuable I think for those who want to learn syntax trees more thoroughly is the Syntax Visualizer Tool Window which shows the syntax tree of active *.cs files.
Everything worked fine when I launched this extension and tried it in a test instance of Visual Studio. But when I have installed this extension, it's not working anymore. I still have View -> Other Windows -> Roslyn Syntax Visualizer but just an empty window tool pops up.
Does anyone have the same problem and know the solution?
I guess that maybe I need to copy DLL files which this extension produces when rebuild but I don't know where should I put it.
Later I found another interesting detail - when I launch my own extension, Syntax Visualizer Tool works! So, it works only in test instance of Visual Studio. Why it should be like that?
The Syntax Visualizer only works when you are running Visual Studio with Roslyn enabled. When you start a test instance of Visual Studio, Roslyn is automatically enabled. Manually starting Visual Studio with Roslyn can be done by adding /rootsuffix Roslyn to the shortcut, but take care that Roslyn is not finished yet. It might not be advisable to enable it by default, depending on what you are working on. Of course, you can also just create another shortcut with Roslyn, so you can choose which one you want.
If you see [Roslyn] in your code tabs in Visual Studio, then you can use the visualizer. Another way of verifying if Roslyn is enabled is to view your extensions. The Roslyn Language Services has to be there for it to work. If this is not the case, then the visualizer can be opened, but it won't show any contents.
You can find more information about the visualizer extension here.
Nico most likely has the answer. Look in the Debug properties of the Syntax Visualizer project to see that it is launching with /rootsuffix Roslyn. Also, without launching this way, you should be able to see the Syntax Visualizer in the C# REPL and C# Script editor windows; as these are Roslyn CSharp editors.

int number; number.m_value?

Today my Visual studio couldn't help me by auto complete so I thought that the ReSharper trial period had ended .After I suspended ReSharper I see that still no auto complete. After a few changes I see still the same problem and there are some strange behavior in Visual Studio. For example I see m_value field for int. But my other Visual studio instances works as expected. How can I fix this problem?
Probably there is an error somewhere in your code which is causing the types to be determined incorrectly - for example a missing curly brace. Check your code carefully for errors. Make sure that your code compiles correctly.
PS: You don't need ReSharper to get autocompletion. Intellisense is a standard feature of Visual Studio. Even without ReSharper I find the built-in autocompletion extremely usable.
IntelliSense is Microsoft's implementation of autocompletion, best known for its use in the Microsoft Visual Studio integrated development environment.
The file property build action was content and this was reason of those strange behaviours. It is fixed after turned build action to compile.

Resources