I have a C# license for ReSharper, and a little while ago Jetbarins gave me a license key for a 30 day trial of ReSharper full. This has expired and I have gone back to ReSharper C#, and as a result have completely lost VB intellisense.
How do I restore normal VB.Net intellisense from within Visual Studio? Is there a way to do this without resetting all Visual Studio settings (I have changed a number of settings, don't want to have to go through and change them all again).
I had this same problem after my ReSharper trial expired.
The fix is to go to Tools > Options > Text Editor > All Languages.
Then under Statement completion, ensure 'Auto list members' and 'Parameter information' are checked (for me they were partially selected)
Just an update for VS2013, you can go into Tools>Options and find Resharper as it's own menu item there, then click suspend.
It seems to undo all the changes it made at this point and restore my original settings.
Also consider reenabling errors in about the same place: Options > Text Editor > C# > Advanced
Under "Editor Help" section, recheck:
Underline errors in the editor
Show live semantic errors
Source: http://resharper-support.jetbrains.com/hc/en-us/articles/206104078-Visual-Studio-IntelliSense-is-broken-after-uninstalling-suspending-ReSharper
Related
I absolutely hate that Microsoft Visual Studio reformats my code. I'm constantly fighting with it. Over the years I've tried several versions and numerous settings but nothing stops the blighter. It insists on reformatting everything and as a general rule making a mess.
Automated re-indenting and alignment when applying brackets\braces or pasting in C#, Razor, HTML and JS files are my main pain points.
Seriously, it's a productivity issue and it drives me nuts 🥜. I know this question has been asked many, many times before, but surely, in this day and age there's a way to simply turn it ALL off?! Please tell me somewhere out there somebody knows how to do this.
Reference: Using Microsoft Visual Studio 2022 17.3.0. Community Edition. No plugins (Resharper etc.). All settings reset to defaults (using Tools > Import and Export Settings Wizard, Reset all Settings)
Side note: I know other IDEs exist but some projects just need MSVC and I'm not looking to change editors. Although I'd accept answers which recommend a plugin guaranteed to solve the problem.
This will not fully solve the issue but hopefully will already help so I'll post it as an answer.
Even without Resharper there are a lot of options under Text Editor settings and this allows you to control (to a certain extent) how the IDE formats your code, but sometimes it's option A or B and not "both" or "any". This means depending on what you type formatting will happen anyway, however as most people always format in a particular way, spending some time tweaking this is worth so once it is done it will be much less painful. Also the vast majority of settings is per specific language and not in the same structure, which does not make it easier. For C# - Braces for example, here's where to start:
Settings > C# > Code Style > Formatting > New Lines: all "Place open brace..." settings
Regarding the other main pain point (pasting) these should help:
HTML
Settings > Text Editor > HTML > Advanced: Set "Format on paste" to False.
JS
Settings > Text Editor > Javascript/Typescript > Formatting > General > Automatic Formatting: Uncheck "Format on paste"
C#
Settings > Text Editor > C# > Code Style > Formatting > General: Uncheck "Automatically format on... (all options to disable all)
This started happening for me in Visual Studio 2019 but does not happen in 2017. I cannot figure out how to stop it.
Something I do all the time is make use of Resharper's reformatting. Suppose I have little block of code like this:
Scan = scan;
Target = target;
IsDone = true;
ShouldAlign = false;
I want to align it up to look all nice and neat. So I select my block of code and I either use the menu or a keyboard shortcut to invoke Resharper's autoformat to line up the equals signs. Voila! Looks great, Here is the reformatted code, exactly as it appears, right after I've reformatted. Note the code is still selected:
But then all I have to do is I click anywhere else in the whitespace of that document, and Boom! Everything gets undone
It is as if VS2019 runs its own "Format Selection" command when I click away But I never did that. (but if I manually do, it has the same effect)
However if instead of just clicking away on the whitespace I, click the menu area of Visual Studio and then click the document whitespace, no problem. No reformat.
Just now I've just finished comparing Visual Studio 2017 and 2019 editing settings side-by-side next to each other. I've compared every single edit/formatting/spacing setting I can possibly find. Both Visual Studio's and Resharper's. They are identical except in those few cases where VS 2019 has some new setting that 2017 did not.
This still happens even when all of VS2019's "automatically format" settings are off
I'm asking the same question of the Resharper folks but I think it has to do with the interaction of the two.
Is anyone else seeing anything like this? It's driving me nuts.
After several hours of this, I have finally discovered that that problem was neither Visual Studio nor Resharper. It was actually a THIRD extension I use (also very common) for C++ files called Visual Assist".
VA has its own "format after paste" option. I am guessing that it must detect the reformat/click away as a "paste" operation and it reformats it according to Visual Studio's settings.
Once I disabled that in single, Visual Assist option VS2019 (as I apparently already had in 2017) everything worked well.
I'm wondering if this is just my ReSharper setup, but as of updating to Visual Studio 2015 with ReSharper Ultimate 9.1.3, using the Shift+Alt+L shortcut while editing a .resx in the designer does nothing.
Has anybody else experienced this, and is there any config that will get this working or is it a bug?
Thanks
This was caused (for me anyway) because my keyboard mapping had magically changed back to UK mapping from US (I want US).
The other day I had another issue that caused Resharper key mappings to go awry and followed some advice on another post (I can't find it at the moment) that want along the lines of:
Open Tools > Options > Keyboard and hit Reset
Open Resharper > Options > Keyboard & Menus, select "Visual Studio" and hit "Apply Scheme"
This should wrest control from Resharper back to Visual Studio and give Resharper the freedom it needs to wrest control back from VS.. ugh, but it worked
Maybe have a look to Stackoverflow - How to locate a file in Solution Explorer in Visual Studio 2010?.
Tools (in Menu) -> Options -> Keyboard -> goto input Show commands containing and type SolutionExplorer.SyncWithActiveDocument. Goto Press Shortcut Keys and press Shift + Alt + L click on Assign button.
You may get a warning that the shortcut is already in use.
When I hit Ctrl-Tab, the "Active Tool Window/Files" pop-up animates into place. Its doing my head in. Unlike VS2005, there is no "Disable Animations" under Tools/Options/Environment, which is the only reference googling turns up.
Is there are way to disable this behavior?
So it turns out this has nothing to do with Visual Studio or Windows. It was a Parallels thing - I'm running VS2012 on a Mac.
http://forum.parallels.com/showthread.php?t=262509
Open Tools->Options->General
Uncheck "Automatically adjust visual experience based on client performance"
Uncheck "Enable rich client visual experience"
This toggles the Animations property value in C:\Users\myname\Documents\Visual Studio 2012\Settings\CurrentSettings.vssettings to false
It is no longer accessible but the setting still exists in the VS settings file. Close VS2012 first. Locate your settings file, mine is stored in C:\Users\myname\Documents\Visual Studio 2012\Settings\CurrentSettings.vssettings
Open the file with a text editor and search for "anim". There's an "AnimationSpeed" setting, mine is 5. And an "Animations" setting, mine is true. Try changing it to false, save and start VS again. Or tinker with the speed, my setting of "5" doesn't do anything that does my head in. So I don't really know how to test if changing these settings has any effect, but you'll quickly find out.
If you see no effect at all then tinker with the Windows animation settings.
Back when I had ReSharper 5 my files would have all kinds of syntax highlighting and a bar next to the scrollbar to the right. It was wonderful because it would highlight redundant imports and possible code smells, as well mark things in the bar next to the scroll bar.
With ReSharper 6 I don't have any of that. I have to actually have cursor on what I want to change and wait for the pencil or light bulb to show up. Is this how ReSharper 6 is by default or do I have to reinstall it?
First make sure ReSharper is acutally activated. If it is, there should be a ReSharper top level menu entry in Visual Studio at the top.
If it is, make sure "Enable Code Analysis" is turned on in the ReSharper settings.
If it is not, enable ReSharper in the Visual Studio settings (Tools->Options). There should be an extra entry "ReSharper" in the list on the left side. Click the "Resume" button.
If you don't have such an entry in your Visual Studio settings, ReSharper is either not or not correctly installed.
Maybe the settings were not taken from the version 5 folder to the version 6 one. Try the following:
Make sure you close Visual Studio.
Go to:
Note: this folder is from a Windows 7 machine, since you didn't provide information on which version of visual studio you are using I'm putting 'x'
"c:\Users*your user*\AppData\Roaming\JetBrains\ReSharper\v5.x\vsxx.x"
In there you'll find a UserSettings.xml file open it for edit.
Look for the "SeverityTable" node. Select it and copy it.
Paste it on the same file that you'll find on the "c:\Users*your user*\AppData\Roaming\JetBrains\Resharper\v6.0\vsxx.x" folder. I recommend making a backup of the file before doing that.
Reopen visual studio. Resharper should be indicating all the recommendations and smells as it did before you updated it.
Hope this helps.