In Visual Studio for Windows, warnings are underlined in green. I am trying to get the same result in Visual Studio Mac, but it only highlights errors (in red). In the error pad (View -> Pads -> Errors) there are many warnings, but they are not highlighted in the code.
I'm using stylecop so warnings are a very frequent thing. But it is not really workable if they're not highlighted in my code.
For VS (windows) this was configurable in the Code Analyzer tab. This has been replaced I believe by Roselyn editorconfigs, but with this I have been unable to figure out how to configure warning highlighting in my code
I don't know if my solutions is exactly what are you looking for, but I use 2 extensions for highlight errors and warnings:
Error Lens (usernamehw.errorlens) for highlight the entire line and show on real time the error diagnostic
Error Gutters (igorsbitnev.error-gutters) for put error icons next of line number
Both look like this:
This issue has been resolved in the latest version of Visual Studio for mac (checked with 8.3.4)
Related
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
ReSharper TypeScript seems to be not working at all in my VS 2015 installation. Despite of the correctly placed TypeScript definitions ReSharper does not recognize the defined types, gives zillion red underlines, and of course intellisense does not work on the variables.
The error message is for example: Could not find symbol 'JQuery'
Some more diagnostics:
Compiling the project in VS 2015 compiles with no error. Making an intentional error in the source then build generates one correct error message
Intentionally making a spell in the type definition file paths, it underlined with red correctly. When correcting the path, underline diasppears
Opening the very same project in VS 2013 all works like a charm, ReSharper is working correctly
Originally used ReSharper 9.1.2 this issue was there. Now upgraded to the latest 9.1.3 and the issue remained.
Any ideas?
If you see this kind of behaviour - lots of red, but clean compile, especially after an upgrade - you should try to clean the caches. Go to ReSharper → Options → General → Clean caches, then restart Visual Studio.
Since the problem occurs in more than one version including latest as of writing, you also have the option to switch off TypeScript support in ReSharper. After all, if a feature is broken, why use it?
How to switch it off according to their web site:
If necessary, you can disable/enable ReSharper features in TypeScript
files by clearing the corresponding check box on the Environment |
Products & Feature page of ReSharper options.
Source: JetBrains help page for ReSharper (retrieved 29 March 2018)
After this change you may have to restart Visual Studio for the new settings to take effect.
I have found that sometimes, the Visual Studio Project file is corrupted, containing multiple references to .ts files. This can cause a different, but related error, where ReSharper thinks there are multiple declarations of a symbol.
To resolve, if you are using version control, it is simple.
Make a commit
Delete the folder containing the duplicated files
Revert changes to the repository
Add the folder back to Visual Studio
Save the project file
As I mentioned, this doesn't solve the original problem, but can help in situations where ReSharper reports duplicate symbols.
I am running into s strange problem. I have VS2013 installed with typescript. When I click on save button of a .ts file, the ts compiler is invoked, but VS does not show any ts errors. If the compiler fails I just get a message "Input file contained semantic errors".
Now I don't know where the errors are. Does someone know how to fix this, so I can see the actual errors?
Usually any errors would appear in the "Errors and Warnings" window in Visual Studio.
If you have a case where they aren't appearing, you can try manually running the TypeScript compiler from the command line:
tsc yourfile.ts
This will output any errors to the command line window.
If you are still stuck, you can supply some code and we can give more specific advice.
I was using TypeScript 0.9.5 during a project, and then upgraded to rc1.
After I did this, although TypeScript is installed and my code works as expected, I have lost all formatting and intellisense.
I have uninstalled Visual Studio and done several reboots. However, I still come back to the same issue.
Has anyone experienced this and know a way to resolve it?
Further Findings:
It is impossibly slow to type source code. Often resulting in the blue warning "Formatting Task Took Longer than 2 seconds to complete. Please try again..."
'It is impossibly slow to type source code. Often resulting in the blue warning "Formatting Task Took Longer than 2 seconds to complete. Please try again..."'
I had the same w/ clean install of VS2013 Express Web Update 2 RC and found this old bug which was fixed a year ago so it seems to be a regression. Here's the workaround from the post:
This is caused by an infinite loop in the logic that detects the extent of the statement that needs formatting after semicolon...go to your Tools\Options dialog then to Text Editor\Typescript\Formatting and check off "Format completed statements on ;". this will disable formatting after semicolon obviously, but should make VS usable again; this should not affect other formatting trigger points like new line and closing parentheses.
Restart Visual Studio for the change to take effect.
FYI: I've submitted a bug report to Microsoft on this issue. Perhaps you could vote it up the bug ticket.
The following worked for me => click on
Tools
Options
Text Editor
All Languages
Ensure "Auto list members" and "Parameter information" are checked (no blue box). Note: this addresses Intellisense (not performance)
I'm using Visual Studio 2012 and I've just created a platform for ASM using Irvine Tutorial at http://kipirvine.com/asm/gettingStartedVS2012/index.htm
Everything works just fine, In order to create a new project I just open an existing project of Irvine Examples and add my own assembly file (otherwise in case I create my own project I get error regarding missing EXE file).
The more complicated issue is the syntax of the Visual Studio. I'm getting a red underline under comments as you can see in the attached image.
These errors don't prevent compiling or running of the ASM program but it is really annoying to view tbe code or writing the code with these strong red syntax errors in front of the eyes.
Do you know this issue? How can I fix it? Why does it happen? Is it realted to the intellisense?
See attached image :
Thank you