How to suppress Resharper VB.Net INTEGER_LITERAL expected error - vb.net

I would like to enable Solution Wide Analysis with Resharper. But Resharper incorrectly reports when using left aligned padding: "INTEGER_LITERAL expected"
It is a known issue at Jetbrains (https://youtrack.jetbrains.com/issue/RSRP-477337)
I checked the documentation, but could not figure out how to suppress it.
' ReSharper disable once WhatsTheName
Console.WriteLine($"{foo,-15}")

Related

AppCode won't highlight errors

I'm trying out AppCode for a simple Swift iOS application, and the first thing I noticed is it won't highlight any error whatsoever. The build fails with simple errors like use of unresolved identifier 'param', but it won't highlight to let me know said variable doesn't exist. Moreover, the the file analysis (little green checkmark at top-right corner) says No problem found.
I'm using AppCode 2016.1
Do I have to make some kind of extra configuration or similar?
Showing warnings and errors in editor is not yet implemented in AppCode 2016.1 for Swift. This feature is ready in AppCode 2016.2 Early Access Preview. Download it here and in case you interested in updates - read about it in our blog

Is it possible to enable syntax highlighting for Microsoft Visual Basic?

I am working on a very old project which needs to be updated. Because the program needs to be backwards compatible, the changes need to be made in this older IDE.
There is no built in syntax highlighting that I see. Is there a plugin or menu that I have missed?
Within VB Editor, go to Options then Editor Format and adjust colours.
There are also some 3rd party softwares out there that will enable you to edit your code with syntax highlighting.
UltraEdit Visual Basic Editor

Resharper: how to suppress warning "Field xy is never used" in XAML

I want to suppress a warning in my xaml file. I applied the corresponding quick fix option to "Disable once warning by comment". However, the warning
is still active. How do I correctly suppress the warning? I would like to keep the name because it tells something about the purpose of the element. (An alternative would be to remove the name and use a comment.)
Edit
The issue is only valid vor Resharper version Build 8.2.0.2160.
After updating to 8.2.3 the suppression works correctly. (And in version 9 the warning does not seem to be active by default.) Thanks to citizenmatt.
The issue is still shown in the Inspection Results view, see related question Resharper: How to hide suppressed warnings in Inspection Results?
In this special case it makes more sense to use the Tag attribute (thanks to Mike Eason) or to use a comment to write the name instead of using a comment to suppress the warning.
This looks like an issue with an older version of ReSharper. You can update to the latest version of 8.x (8.2.3) or ReSharper 9 (the 9.2 EAP has just released EAP3). It appears to have fixed the issue.

Can I get the VBA syntax check error without the automatic syntax check?

When I write VBA code, I tend to cut and paste variable names or other bits of code. This results in frequent syntax check errors that result in the message box popping up. That's annoying, and I'm aware that I can turn it off via Tools > Options > Editor > uncheck Auto Syntax Check.
This doesn't seem to prevent the VBA editor from actually checking my line - it still turns red. I don't mind that behavior, because it doesn't interrupt anything. And it does let me know if I do, in fact, have some sort of problem after I'm done with the line, which is nice. Unfortunately, I'm not always smart enough to diagnose the error on my own, and the text in the message box is actually helpful. But I've turned off the message box!
Is there a way for me to display that error, short of temporarily turning the message box on?
You can compile, with Debug>Compile, which will bring up the same message. IF there's more than one compile error you might have to deal with that one first.
This comment is for users of Visual Basic for Excel on a Mac.
I am using Visual Basic in Excel verion 16.14.1, (the latest version as of July 2018), as part of Office 365 on an iMac Pro, running High Sierra.
Under the Tools tab of the Visual Basic editor, there are only three choices:
References...
Macros....
VBA Project Properties......
None of these sub-menus lead to "Options", nor to anything which allows you to turn on and off "Auto Syntax Check"
Instead that option can be found in Excel ==> Preferences tab. However. checking or unchecking the box does not change the behaviour. In both cases, the text turns red on a syntax error, but in neither case does the annoying pop-up window appear.

Forcing ReSharper to use the red curly underline for some errors?

ReSharper defaults to using a red curly underline for some of its errors, and highlighting keywords red for others. For the 'Cannot resolve symbol' error (which is the same as the 'The type or namespace name could not be found...' error in normal Visual Studio), ReSharper defaults to highlighting the unfound keyword red:
... instead of the default Visual Studio of using a red curly underline:
Is there a way to make ReSharper use a red curly underline instead?
That's actually an error. The only different is that R# provides highlights it differently since it provides the option to create a type.
Alt+Shif+Page Down (or Page Up) to navigate between errors will actually identify this one and the error is even more evident if you enable the Solution wide analysis (bottom right corner) and open the Errors in solution window