I am working on a asp.net MVC project in Visual Studio 2019.
I am watching a tutorial and the tutor uses Visual Studio 2015. His editor shows parameter name beside parameter, like this:
While my editor doesn't:
Does any one know what setting, feature or extension is that?
It's called "inline parameter name hint". Not sure how VS 2015 can have it since even Resharper only introduce it on 2018 (maybe CodeRush or another extension?), but if you're using the latest VS, it's available under the Editor Help group from Tools-Options-Text Editor-C#-Advanced. This feature is turned on by default in all IDEA-based IDE (Rider, Android Studio, PhpStorm, etc) so expect more people to be used by it.
Related
I am writing a language extension in Visual Studio code (see this article for an example), and I wish to know whether this extension will be useable in Visual Studio 2017 (and 2019 when it comes out).
According to the visual studio docs and especially to this picture it should be possible to migrate that language server to visual studio, too.
However it is not possible to use the exact same extension for VS Code as well as for Visual Studio. At least you will have to change the Provider-specific intizialization code (see the picture) to make the server work for Visual Studio, too.
For further reading you can check out the corresponding VS Code docu on language server.
Pressing CtrlMO in a c# file collapses all members of all classes in the file but not classes or namespaces.
Pressing same keys in a typescript collapses all outlines even the namespaces and classes.
How can I get same behavior for collapsing a typescript file like a c# file?
Is there any shortcut or a visual studio extension to achieve my goal?
Is this behavior become default behavior in earlier versions of visual studio?
Is this behavior become default behavior in earlier versions of visual studio?
I just checked visual studio 2015 and visual studio 2017 and this is now defalt behavior of visual studio when pressing CtrlMO
Is there any shortcut or a visual studio extension to achieve my goal?
As the newer versions of visual studio have the feature out of the box and older versions are going to be abandoned I don't think there is/would be any shortcut or extension for the this propose.
I should try to convince our company to migrate to newer version of VS or spend some of my time to write such an extension.
I'm using Visual Studio 2015 for C/C++ development, I'm used to Eclipse where, when I click on a suggested method, it's automatically written (with braces and parameters); currently in visual studio when I select a suggested function it just appears with no braces and no parameters, is there a way to do what I've asked?
Thanks in advance!
I would recommend looking at ReSharper. If your looking for Visual Studio 2015 to have the run like Eclipse or even Sublime, then take a look at this - also check some YouTube videos about developers who use the software to see if this is what you are looking for.
I have a project from VS Studio 2010 that I want to work with in VS 2015. When I start this Project with VS 2015 I receive an error saying something like "compatibility-Error (Version)".
How can I successfully convert a Visual Studio 2010 project to use with Visual Studio 2015?
Without you going into any more detail about the actual error. (error numbers / screenshot) it will be very hard for any of us to give a real answer. Therefore I am going to suggest you take a look at Troubleshooting Unsuccessful Project Upgrades.
Something else to check out might be the Porting, Migrating, and Upgrading Visual Studio Projects guide
One of the key things mentioned in the 2nd link I provided is:
The following list describes support in Visual Studio 2015 and Visual Studio 2013 for projects that were created in Visual Studio 2012 or Visual Studio 2010 SP
Therefore I'd recommend upgrading the 2010 version to SP1 first. (if this is still installed that is)
One further thing to note is that if you keep the old version of Visual studio installed you can import a project which is made with an older version and skip the update. Visual studio 2015 will then use parts of the older version itself to open the project.
For details you can read How to: Upgrade Visual C++ Projects to Visual Studio 2015 page and the equally useful Installing Visual Studio Versions Side-by-Side page.
It appears that there are issues when moving from VS 2010.Net to VS 2015.Net and may require that you build the project from scratch and copy the code over. VS 2015 requires a Namespace. There are a number of designer issues on control that require the style page be used since various attributes have been removed. Something still, however, do work but you need to review the HTML, specifically things like Font and alignment. While it's a pain it isn't a big deal since it requires mostly cut and paste.
If you are having issues converting web projects the projects may have originally been created as a "web site" rather than a "web Project" . Try opening the application as a web site and see what happens. At least that may help get you to the point you can actually get to the code to convert it in VS 2015. Hope this helps.
Try to Right-click the solution, then select "Re-target solution".
When debugging in Visual Studio 2010 and hovering over a variable name, I'm given the option to use 3 different built-in visualizers: Text, XML, & HTML.
Here is an example of what I'm referring to:
Since I'm doing more and more work with JSON based data, is there a JSON visualizer that I can install?
Yes, use this addon on Codeplex.
archive.org - JSON Viewer on Codeplex
Overtly visible disclamer: I wrote this and I'm giving it away for free via Microsofts Visual Studio Gallery. No ads, no link to my own site or anything.
I found this thread when looking for the exact same thing but seeing that http://jsonviewer.codeplex.com/ is "A visualizer for Visual Studio 2005" i felt that it was probably to outdated for my use. So I wrote a new visualizer instead (with built in jsonlint-support!). It has been tested with Visual Studio 2012 (but probably works fine for at least 2008 and 2010) and available from Microsofts Visual Studio Gallery.
You may reference theses posts:
JSON Debugger visualizer in Visual Studio 2012
JSON Debugger Visualizer in Visual Studio 2013
Actually it does work in visual studio 2010, but you have to unblock the assemblies. In explorer right click on the DLL and view properties the is a button to unblock the assembly.
I know the question references specifically Visual Studio 2010, but at least in Visual Studio 2019, the JSON Visualizer is already integrated so you don't need any extension, I would say.
Just select the JSON Visualizer in variable's view context menu:
And then press the view button: