Visual studio, intellisense and custom compiler settings - visual-studio

Please excuse me if this question is inappropriate, I switched to windows together with my linux code which is based on c++11 so I have 2 options, to change the compiler or rewrite my code, I'm prety sure I won't rewrite all the code but replace MSVC "C" compiler with something better like clang++ or g++.
But I'm unsure whether this will broke intellisense of visual studio and what can I do about that?
I would like to have both functionlaities, c++11 and good code completion in visual studio.
can you recommend what actions/compilers(other stuff) to take before struggling with new compilers and code completion settings?
I'm also unsure whether all that will work anyway.. thanks.

Related

Is there an extension for visual studio 2019 that highlights assembler syntax for NASM?

I was thinking about switching to using VS2019 to develop low level assembly stuff in NASM but I couldn't find any extensions for specifically NASM, I could only find one called AsmDude but that's for MASM, I looked everywhere and couldn't find anything, the only ones I found were for VSCode but I personally prefer VS2019 to that, Does anyone know of a NASM syntax highlighting extension for VS2019?

Can I disable all compilation in Visual Studio?

This is a new one for me. I have been asked, for legal reasons, to setup a laptop with Visual Studio, but to disable the ability to compile projects/solutions. The purpose is to enable browsing of the source code, but not allow building or executing it.
Yes, I know this is really a stupid question and unfortunately I can't get into too many details. I've asked about using alternative text editors, but I have been told no. So until I can prove it isn't possible (or that I have at least made a reasonable effort), I have to try and make this work. Notepad++ would be an excellent alternative, but that has been rejected.
This would be in Visual Studio 2010 or later. Is there any way that I can do this?
UPDATE
After trying Marius Bancila's suggestion of removing the compilers and MSBuild, I was surprised to find out that VS continued to work fine (except for building, of course). I did not expect that functionality like F12 (Go To Definition) would continue to work.
This may mean that there still remains the ability to build something somewhere somehow. But as it stands with MSBuild permanently deleted and the Visual Studio Build command not working, it'll take some effort to get around it (if a way in fact does exist).
You didn't say what projects should not be possible to build (VC++, VC#, VB.NET, F#, etc.). Starting with VS2010 they are all built using MSBuild. So if you delete MSBuild they will not be able to build from inside Visual Studio. However, one can still be able to build from the command line, so the only possibility I see is that you delete all the compilers that come with Visual Studio.
It's a little bit crazy, but if you really have to ...
Try deleting some important binaries after installing Visual Studio e.g. linker (link.exe) and compiler (cl.exe).
Use a text editor instead. Notepad++ even comes with color syntax highlighting.
You cannot prevent people from compiling the code. Visual Studio Express is available to anyone, and the compiler can be executed from the command line, without Visual Studio's help.

Visual Studio 2010 Professional doesn't have C and C++?

I always program in C# so the last time I installed VS I remember picking C# Mode or something like that. But now, I'm learning C and when I go to new project, C and C++ aren't there at all. What can I do to get these languages back without resetting all of my settings?
Since this was settled in the comments but nobody posted an answer... You just use the C++ compiler and set the option to compile as C code as shown in this figure by Mahesh.

interface for Visual Studio Errors (want to replace compiler)

I was wondering if anyone knows how to use a new compiler within visual studio, and how the interface between compiler and IDE works to make error messages and source code locations "work" (eg double click goes to location).
Context: trying to integrate clang
I am using NMake for "integrating" clang with Visual Studio. You get the convenience of syntax highlighting and intellisense with the power of LLVM. You have to manually make an nmake buildscript file though (which is quite cumbersome).
There is a clang switch called -fdiagnostics-format=msvc that will output the error and warnings in a format that Visual Studio understands (so you can quickly jump to errors or warnings in your code).
Microsoft provides a Visal Studio Integration SDK which presumably is used by Intel. The Intel compilers can add themselves to the VS IDE and replace the Microsoft compilers.

Is there something that improves the c++ interpreter built in to Visual Studio 2010?

I'm going to school for computer programming and I have been using Xcode and really like its predictive text input (or whatever you call it maybe interpreter). The only thing is that it seems to function a little different when creating a C++ project. Such as you don't have to say "#include " to use the string library. Where as in Visual Studio you have to. What i'm afraid of is turning in a class project done on Xcode and missing including a lib and losing points. So i would like to do it on VS 2010 but i would like to have a better interpreter. Any help on this.
I think you mean AutoComplete..... and there is an add on called Visual Assist X that makes it magic for C++ coding.

Resources