Live compiler checks when developing and CTRL clicks in Visual Studio 2010? - visual-studio

I'm working from home and can't reach the server where my Resharper license is hosted, so Resharper is not working at the moment.
Without Resharper I don't see any develepment time compiler checks. So when I type
var test = new NonExistentClass();
I am not seeing any warning until I build the project. I assume this can be configured somewhere, but I can't find it.
Secondly, I am really missing the ability to CTRL + click method calls, variables and class names to jump directly to their declarations. Is this something Visual Studio 2010 is not capable of? I use this a lot and I must say I haven't seen a IDE that can't do this before, so I am hoping this also can be configured somewhere.

You can enable live error checking by checking Tools, Options, Text Editor, C#, Advanced, Show live semantic errors.
You can enable Ctrl - MemberName navigation by installing the Productivity Power Tools.

Related

How to turn ON visual studio debugger inline watch in vs 2015?

I saw some developer have visual studio inline watch without using any third party plugin. I searched in settings to turn this ON but I can not understand what option will allow me this.
I can get this feature using Entrain Inline watch but this is a paid software and I know the visual studio has a built-in feature for this. Can you let me know how can I turn this on?
See the screenshot, I can see the variable values in line using entrain third-party plugin but I want to use the visual studio's built-in option
For future referrence, I would like to share one tool that I have found useful, that is Entrian Inline Watch visual studio extension, very useful.
I'm afraid the answer is negative.
For now, Visual Studio2015 doesn't support for watching inline values in debug mode.Please check this document,it describes several ways to watch values in debug mode without using third-party plugin.
I saw some developer have visual studio inline watch without using any
third party plugin.
As I know, VS2015 doesn't have this option. But VS Code seems to support this feature now. I'm not sure if the developer you mentioned has some extension like Resharper or what. It also provides this feature like Entrain Inline watch.
If you have a requirement to achieve this feature in VS2015, I suggest you post your suggestion on DC by Help=>Send feedback=>Provide a Suggestion, if it gets enough votes, the product team would consider it.

Visual Studio 2017 enable completion after character is typed in F#

I'm developing a F# project using Visual Studio 2017.
Before, I've used C# and I'm used to great autocompletion in VS that automatically pops-out and shows me a list of local variables, methods and so on when I press any character.
Unfortunately, in F# I need to force autocompletion to show by pressing ctrl + space. It shows automatically when I type someObject., but I need to type entire phrase someObject or press ctrl + space every time I want VS to complete long variable name for me. It gets pretty annoying as I'm used to similar feature in VS Code, Sublime, and C# in VS and it really speeds up coding.
I wonder if there is any setting / plugin / hack to have such feature when using F# inside Visual Studio?
Is it possible to mock ctrl + space when I type any character in code editor?
This isn't currently supported in the VS 2017 RTW tooling.
This pull request seems to add what you're looking for, and it was merged 3 days ago. There's a property dialog added (shown in the PR) to toggle this behaviour on/off.
For that reason (and plenty of other compelling reasons - the RTW tooling is stable, but it's not without its share of issues) I'd suggest you try the latest Visual F# Nightly builds.
I've just tried the latest build (as at 18 March), and this works as you describe and is enabled by default.

Disable Visual Studio Special Debugging Features

I am new to Visual Studio, so I am used to IntelliJ and Eclipse style of functioning. I usually do not use a debugger when I develop, so I do not want to use it in Visual Studio too.
Is it possible to disable all special debugging functionalities which Visual Studio provides when you start your application? I want to have only normal output for the errors. When I disable all debugging, then I do not have usual output too, so this is not an option.
I tried many settings, but nothing seems to work and give me the results I want - no extra popup windows, no shiny layout changes when you have an error, just ordinary output.
Thanks!
Everyone's definition of "normal output" is different. Personally, I like the way Visual Studio handles debugging.
The console window in Visual Studio is a debugger feature and hence that is why it doesn't work when it's not attached to the process. If you want a stack trace without attaching, you could use your language/framework's built-in facilities such as an Exception or StackTrace in the case of .NET. You could also have Windows write a crash dump, but then you are debugging the corpse inside of Visual Studio.

Resharper Overriding VS Functionality

I downloaded the trial of Resharper and installed it today. The first thing it asked me was that version of shortcut keys I wanted to use. It asked me if I wanted to override some standard Visual Studio shortcut keys. My answer was ##$# no!
However, the first thing I did was a Ctrl-Dot on a class reference that was missing an import. Immediately, the Resharper context menu came up which is similar to the VS one, but is missing the item for automatically adding the import.
How do I keep Resharper from usurping VS functionality?
Edit: Ouch! After using this thing for a couple of hours, I've realized that it has totally overridden loads of VS functionality. This thing is awful. I just want to use the toolset, I don't want a completely new IDE. If I wanted a different IDE, I'd go out and buy one. How do I turn off all Visual Studio integration except for the menu that lets me run the tools?
There are a lot of different settings you can turn on and off to allow Visual Studio to behave more like Visual Studio when Resharper is in action. What's I've learned to do is just turn it on when I want to use it, and turn it off when I want to use Visual Studio.
Tools -> Options -> Resharper Ultimate General -> Suspend / Resume Now

No IntelliSense for C++/CLI in Visual Studio 2010?

I just moved from Visual Studio 2008 to Visual Studio 2010 (final) and noticed one major flaw:
When I try to use AutoComplete in a C++ source file for managed C++, a small note in the footer appears:
IntelliSense for C++/CLI is not available
Uh, has IntelliSense for C++/CLI been dropped from Visual Studio 2010? Is there any way to get this back? It is rather useful...
You are correct. Unfortunately it has been dropped. You can check this opened issue on Microsoft's Connect website.
I'll just quote them for the sake of the answer:
Unfortunately in this release we had to cut the intellisense support for C++/CLI due to time constraints. If you want to get some intellisense like quick info and memberlist on the native classes you can get it by choosing no /clr support in the project properties.
About getting back intellisense, your best chances for now are using third-party tools like VA Assist for example. I've tried it with Visual Studio 2008 and its IntelliSense is a whole lot better than the default one.
It is available again in Visual Studio 2012.
If you want to get IntelliSense back, install Visual Assist X from Whole Tomato Software. Here you can get a 30-days trial to check the intellisense.
According to the Visual C++ Team Blog, C++/CLI Intellisense will be in the next version of Visual Studio, but not in a service pack for VS2010. That blog post also gives some detail as to what went wrong and led to this sad state.
I don't know if you can use this settings but it work for me. I only check the Common Language RunTime Support for the cpp files that use it. I do not check it for the whole project and I've got intellisense for all the files that don't use the CLI.
Yes! you can enable the IntelliSence, but in a tricky way. Follow these instructions:
Go to your project properties. (Right click on your project name in
Project Explorer, and select Properties. or simply Alt + Enter)
From Configuration Properties, select General
In the right-hand section, find "Common Language Runtime Support"
and change it to "No Common Language Runtime Support".
Click the OK Button.
Now the IntelliSence is working. But a problem is an error when you compile your code! (The error is: error LNK1123: failure during conversion to COFF: file invalid or corrupt)
You can simply go back to Project Properties an change Common Language Runtime Support to "Common Language Runtime Support, Old Syntax (/clr:oldSyntax)".
Good luck.
This solution is only if you don't want Common Language Runtime
It worked for me in VS2010
Go to Project Propreties > Configuration Properties > General > Common Language Runtime Support and set it to No Common Language Runtime Support.
This will work fine just after hitting Apply button.
As mentioned you could install some paid software such as "Visual Assist X from Whole Tomato Software".
or
You could use open source tools that contain intellisense*, one such tool is Qt Creator 3.3.1 (opensource). You have two options, either setup your entire project with Qt to compile using VS2010 compiler, or use Qt to link to your source files and compile with VS2010. You write your code in Qt, save, flip windows to vs2010 and compile and debug.
When changes are saved in Qt, vs2010 will automatically reload the source file in the project and you can compile.

Resources