Is there any way to stop Resharper (2012.2.1) disabling the Visual Studio CodeLens reference counts?
Since installing, all reference counts just show:
- references | User Name | 1 author, 1 change | 0 incoming changes
According the Resharper documentation it gets disabled to speed up VS, and Resharper has its own version activated via Shift+F12. However, there doesn't appear to be a way to disable this functionality. Personally, I still find it useful to glance at the reference counts.
Current settings based on suggestions so far:
Can be done on the "Performance guide" R# settings page.
In Visual Studio, open Tools->Options...->Text Editor->All Languages->CodeLens and ensure that it is enabled:
Related
In Android Studio, there is a background color effect for some fields(e.g. View.SYSTEM_UI_FLAG_LAYOUT_STABLE, View.SYSTEM_UI_FLAG_FULLSCREEN).
Example:
When I put the mouse on it, the pop-up is displayed telling me that "Field requires API level xx (current min is xx)".
It's very usuful. So I can make some conditions for each Android OS version.
I've remove the effect by mistake. but I don't remember what item on setting is for it.
So, I really want to revive the background-color effect and the message pop-up for "Field requires API level xx (current min is xx).
Naturally, I can revive it by re-installing Android Stuido or resetting the IDE Setting to Default.
But I already made alot of changes on Android Studio Setting. and I don't want to lose it..
I've never found a item to revive it in Android Studio's setting.
please help me
If you press Alt+Enter you'll see that it suggests #SuppressLint("InlinedApi") to disable the warning.
Doing a search for "inline" in the IntelliJ/Android Studio settings leads to this:
Go to File > Settings > Editor > Inspections > Android > Lint > Correctness > Using inlined constants on older versions (you can also search to find it). Here you can disable it by unchecking it; remember to click apply or OK to save it.
For reference, it's in Android Studio as well under the same location.
For changing the background color, click the severity spinner and click "edit severities". Click warning or create a new severity and set the color (the settings should make it easy to see). Reenabling is in the same location by checking the box or changing the severity level to warning or error for that matter.
Checked in IntelliJ 2018.1 and Android Studio 3.1.2. It might not be present in older versions of either IDE, or it might be in different locations.
There are wasy to disable inspection. But Disabling inspection is not recommended, because
You will not get further important suggestion about some version requirements. (like if particular method require 21 and you are targeting API 15, then it does not sound good to have that method.)
If some user is running your app on 16 version then your code will crash, because it was not added in that API level.
Got that?
Solution:
1.You can check API level in your code. for that only press alt + enter on that suggestion you said, and accept changes. It will generate a code like this.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {}
2.You can increase your minimum sdk level from app level build.gradle
defaultConfig {
...
minSdkVersion 16
...
}
I use Resharper with Visual Studio 2017. I've noticed in the last couple days that intellisense is no longer showing local variables (which is very annoying).
In the screenshot below, notice the variable "result" is not listed in the intellisense list. Also notice that I have all the little icons for what to show checked-off.
Is this a feature of ReSharper that needs to be turned back on? Is there a setting somewhere that controls this?
Try unticking "ReSharper | Options | Environment | IntelliSense | Completion Filters | Persist filter state" checkbox. There is a bug report on YouTrack
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
I noticed a strange behaviour in my VS2012 installation. I use VS2012 Pro and ReSharper 7. Intellisense is just not showing code suggestions anymore. I found a few related questions in my research but they always had a slightly different setup going and none could solve my problem:
Intellisense is working but, it's not showing the tooltip about selected member functions/Properties anymore.
If I take a look at the C# Text Editor Settings in
Tools -> Options -> Text Editor -> C# -> General
Most of the times the two necessary boxes Auto List Members and Parameter Information are selected. However, code suggestions in Intellisense don't work. Sometimes, when I look at the described settings, they are unselected.
Selecting them will make code suggestions work as in VS2010 but, only once. When I check the settings afterwards, they are most likely still selected, but code suggestions are not working anymore.
Some people suggested deleting the %AppData%\Roaming\Microsoft\VisualStudio\11.0 Folder, which did not work for me. I also tried to reset all changes, which also didn't help at all.
Tools -> Import and Export Settings -> Reset
What in the world could make Visual Studio to just forget its settings and trigger such an irrational behavior?
-edit-
I display the code suggestions by pressing CTRL+Alt+Space. However, I have to press that shortcut every time I want to see the suggestions. It has to be possible to automatically display them every time, when possible?
I was having a similar problem, but I kept overlooking one small ReSharper Intellisense setting. I would double check that you have Symbol completion on in
ReSharper | Options | Intellisense | Completion Characters
Check out the answer with screenshots.
Thanks for all the tips, I figured out what I had missing:
I had to enable "Completion Appearance" -> "Show Summary".
I also accepted Anthonys answer because he linked to a detailed post with screenshots that shows all steps necessary. (Although the thing I had missing is not mentioned there)
ReSharper uses it's own code suggestions that override Visual Studio ones, that could be the reason why the ones in the Visual Studio settings may be disabled. Please check ReSharper options at ReSharper -> Options -> Environment -> IntelliSense. Maybe they are turned off there. If your ReSharper options are turned on but you still have no intellisense, then please ReSharper's support at http://www.jetbrains.com/support/
I have Resharper installed and somehow CtrlW no longer "extends the selection". I tried assigning it to Global / Resharper.ExtendSelection in Tools -> Options -> Keyboard but it still only selects one word.
I have found the resolutions. Go to ReSharper -> Options -> Visual Studio Integration -> Keybord Shortcuts --> ReSharper or IntelliJ IDEA.Next time when you press CtrlW, Visual studio will ask you about shortcuts. You will choice ReSharper shortcuts and that is it.
A solution i found was to reconfigure keys at the Text Editor level (they are defined at Global level and for some (annoying) reason Resharper overrides this.
So: (Tools->Options->Environment->Keyboard), set Use new shortcut to Text Editor and redefine your shortcuts.
Tip: Look for your CtrlW favorites by writing view. at Show commands containing.
I needed View.ErrorList (CtrlW, CtrlE), View.Output (CtrlW, CtrlO) & View.SolutionExplorer (CtrlW, CtrlS)
HTH
p.s.
I even disabled Resharper and it still won't work...
A question and a suggestion:
Does Resharper | Edit | Extend Selection work?
Reapply VS integration via Resharper | Options | Visual Studio Integration | Apply Scheme
For me the reason was a silly one:
My C# file was removed from the project accidentally, so resharper no longer regarded it as C# code and so there were no syntactical elements to extend the selection to. In other files it worked ok.
In my case (Visual 2019)
go to Tools\Options\Environment\Keyboard
set Apply the following additional keyboard mapping scheme to Resharper (Visual Studio)
I had the silliest reason.
after the resharper installation I didn't apply my license or started the evaluation.