int number; number.m_value? - visual-studio

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.

Related

Visual Studio 2022 Intellisense XML documentation started failing

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

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.

How do I find which code completion feature is running in Visual Studio?

I use Visual Studio 2017 15.6, with ReSharper 2017.3. They're mostly both ace, but some of their code completion features do the wrong thing more often than they do the right thing. I want to turn them off.
I've managed to turn some off, but can't find which setting is causing some others to run.
Is there some way to find out which specific settings are causing code completion to run? Perhaps some Visual Studio debug log of code completion steps?

Visual Studio text editor does not recognize F# source?

I have got the following problem with F# code recently: almost the complete code is underlines with curly red lines (indicating problems) and whenever I hover with the mouse cursor over any word the pop-up appears with the message "Unexpected token". IntelliSence doesn't work either.
Nonetheless if I start the project it is executed without any problem.
This happens both to already existing F# files and to newly created F# projects. I remember it was working just 2-3 months ago!
I tried to deactivate all possible extensions but it doesn't help.
Any ideas?
I get this too. Sometimes, simply exiting and going back into VS helps. When I tweeted the problem, Don answered with this:
"do you have "python tools for visual studio alpha" installed? if so, uninstall it or apply the hot fix"
This wasn't relevant to me (as I haven't been anywhere near python) but I'm posting here in case it helps you.
-- Edit: here's a link to the patch, thanks to Alexander Galkin: http://pytools.codeplex.com/workitem/599
I haven't seen this situation before but here's a guess at why it's happening and how you might cure it.
Visual studio works on a system for plugins. Even the stuff that is "native", like the C#/F#/VB.NET project systems, are just plugins that uses the visual studio shell. It looks like the F# plugin has been damaged in someway.
If this is Visual Studio 2010:
You might try opening the visual studio installer and trying a repair installation or deactivation and reactivating the F# project system
If this is Visual Studio 2008:
You might try uninstalling and reinstalling the F# plugin

visual studio 2010, how to access a code snippet?

I have used code snippets in VS 2005, VS 2008 like: {code snippet},{TAB},{TAB}. Since I migrated to VS 2010 I cannot use the 2 TAB combination anymore. How can I access it? I feel like a real noob :)
Edit:
I guess it works, but not for all of them... I tried for the get and didn't do anything. Maybe I should check what is with the get inside code-snippet manager.
The Tab+Tab combination is still the way to insert code snippets in Visual Studio 2010. It's likely another setting which is breaking this behavior. I would try reseting my Visual Studio settings and see if that fixes the issue
Tools -> Import / Export settings
Navigate through the wizard
Use the profile of your choice
It should be the same combination as before (tab-tab works for me!). It may be worth checking for any extensions you've installed that might override shortcuts...

Resources