In Visual Studio 2015 Solution Explorer next to C++ files is a "++" icon, easy enough to understand, but I have one C++ file that has a red circle with a white minus sign in it over the "++" icon. I have tried making changes to this file and checking it into TFS, the icon does not change.
Short questions: What does a red circle with a white minus sign in it over the "++" icon mean??
Bonus question: I searched all over trying to get a list of the icons, without any success, does a list of these icons exist??
07.Nov.2016 Update: This question was asked and answered in 2012, but I feel this posting should remain, because both the question and answer include screen shots. A picture is worth a least a 1,000 words!
It means the file is excluded from the build. Right click on a file - Properties - Configuration Properties - General and see if the Excluded From Build is set to Yes. Setting it to No removes the icon.
Related
In Visual Studio, I selected the lines and click "Comment out the selected lines" in the tool bar. The VS will put // in front of all selected lines. How do I change the style so that the VS put the selected lines in between /**/?
Currently, there is no such setting you want in C++ project. You can go to Developer Community to propose this new feature and post the link in comment. In addition, Visual Studio now supports Ctrl + Shift + / to comment and uncomment.
WebStorm seems like the IDE for web dev, and I've been enjoying it very much. The only problem is the linter's error underlines:
Due to such light color I've spent quite some time debugging while the error shouldn't had happened in the first place, I looked around and didn't find a way to change the color. Is this possible in WebStorm?
Even dark themes don't have a harsh and contrasty underline. Can we change it?
What inspection does the issue come from?
Place the caret at the highlighted line and press Alt+Enter
Click the arrow next to the inspection to open the submenu, choose Edit inspection profile settings to jump to inspection definition
either choose the inspection severity per instructions at https://www.jetbrains.com/help/webstorm/2020.3/configuring-inspection-severities.html#change-severity or configure the color/effects used for specific severity as described in https://www.jetbrains.com/help/webstorm/2020.3/configuring-inspection-severities.html#change_highlighting
Some times ago I was working with Visual Studio 2017 and if horizontal line of code bigger than VS window, VS was showing it in new line. Look to this picture
As you see in picture, horizontal lines of Assert takes more then VS window. And sometimes VS moved it in new line and showed green arrow icon under line. But now this formatting is disabled. Does anyone know how to enable this (I'm using c# 2005 keyboard )? I hope i could understand my problem.
You have to go to: Text Editor > All Languages > General (Or the language you want) then you tick the checkbox Word wrap(Also Show visual glyphs for word wrap if you want to see that arrow you mentioned.).
I'm new to visual studios and I just created this very short calculator and I want to put it on mediafire for people to download but I wanted to change the icon..
I've heard that you select your app in solution explorer and Project>Properties
But my properties menu seems different.
It saids calculator property pages.
It doesnt have the tabs like ~Publish~ or ~Applications~ where people said you change your icon.
My properties is like this:
Configuration: Active(Debug)
and some other stuff below it some complicated stuff(to me)
Why doesnt mine have what other people have? I just want to share my first ever app with a custom icon. Help please, will appreciate it.
Create a text file, rename it res.rc, edit it to contain the line:
201 ICON "myicon.ico"
Add that file to your project. The file myicon.ico must exists.
Note: This is a bit hacky, the numerical vaulues should preferably be defined in a header.
You might be confused because Visual Studio supports different languages, and its UI is not consistent across those languages. Since you tagged it C++, the "old" rules apply. An application icon is a so-called resource.
You have to provide an .ico file, and reference it in a .rc file. The resource compiler (RC) compiles it into a .res file, and the linker then adds it to the EXE.
In C++, if you open the form in designer view, the properties window has an icon property that will allow you to browse for the icon of your choice.
Just for reference, i spent two hours trying to change it without any success until i resized the icon, it should be 32x32 and another one for small icon -not sure if its necessary though- with 16x16.
visual studio creates two icons when create the project , one is called small.ico and one is name yourexe.ico, just replace those and make sure to have correct sizes.
Suppose I am writing an if statement in C++ with VS2008. I'm inside a function and therefore indented (a tab from the left margin, say). I type if{, hit enter and I'm now two tabs from the marging - I'm happy :-)
I move the cursor up a few lines to copy something and then back to just under the if{. Lo and behold, my cursor is now right against the left margin and I've lost my indentation. Grumpy! >:-(
I'm wasting my time retyping tabs and it's driving me bonkers. Please help me unlock the secret setting that allows me to get on with my work.
Edit: Incidentally, whilst developing in C# I experience the desired behaviour. It's just C++ that loses the auto-indentation.
To the best of my knowledge, there is no setting to get this to work in VS2008.
In VS2010, it does behave how you would expect.
If you can, I would recommend using VS2010. If you are doing c++-cli, you can set the project to use the .Net 3.5 framework, and then it compiles using VS2008. If you are doing vanilla c++, you can go into the project property pages, General and set the Platform Toolset to v90 to get it to compile using VS2008. Of course, you could just compile using VS2010 if that's an option for you.
If you view white space (Edit > Advanced > View White Space), you can see that when you press enter the tabs are not put into the file until some text is typed. When you click away, Visual Studio doesn't remember that you were indented.
A potential solution to you problem is in Tools > Options > Text Editor > C/C++ > General, you can check "Enable virtual space". This allows you to put the cursor anywhere and once you type a character it adds the tabs/spaces up to the cursor.
The option in C# that is missing from C++ is the check box "Indent block contents" in Tools > Options > Text Editor > C# > Formatting > Indentation.