Turn off outlining permanently for VS2010 ( C/C++ ) - c++

For some reason I can't turn it off permanently. When I stop it manually from Edit->Outlining->Stop Outlining it's OK but once I close the file and open it again and it's on again. Disabled it in option->text editor->c/c++->formatting and nothing.
Tried editing the .vssettings file (or I'm editing wrong file? C:\Users\%current user%\Documents\Visual Studio 2010\Settings) but something is modifying it back again. I'm out of ideas :(.
Thanks in advance

Choose Tools menu > Options menu item.
Expand Text Editor then C/C++ and click on Formatting, set Enable Outlining to false
Note: you may need to reopen the file. The option is technically to enable outlining on file open.

In VS2013 it's not under Formatting. It's here:
Go to:
Tools/Options/Text Editor/C#/Advanced
And then just uncheck "Enter outlining mode when files open" checkbox.
And that's it. ;)

In VS2015 for C/C++ files it's here:
Options->Text Editor->C/C++->View->Enable Outlining

Related

How to fix "The parser is still parsing files" popup in codeblocks

So I have not changed any settings in my code blocks editor and yet this appears I am new to the code blocks editor and if anyone could explain how this could popup so I can fix it and I have heard people will disable code completion to fix this but I never had the problem with it on so
I have tried disabling code completion this did fix the problem but it normally wouldn't do this with code completion on and I don't want it off
Open Code Blocks settings screen
Click "Editor..."
On the left, choose "Code compliation"
Choose "C/C++ Parser"
Make sure the checkmark on "Use one parser for the whole workspace" is checked
Then after saving the changes restart your Code Blocks IDE and make project save it. After that your issue is resolved.
None of the solutions mentioned above helped me!
I found myself solution, try whether it works for you not!
settings -> Editor -> scroll down (left options) -> Code Completion -> C/C++ parser -> Use one parser per project Check this option -> Maximum allowed parsers keep it less mine worked when i keep it to 2
It seems that rebooting the program has fixed this problem... Also I uninstalled the Library finder which I had opened once by accident then closed the program not saving and changes to anything which then restored library finder and apparently fixed the issue...
This worked for me:
Create two C/C++ files. Build and run them. Go to the C/C++ file you've built first and try to write something. Now, your issue should be fixed.
There's a youtube video explaining this trick. You can watch this if you face any difficulty: https://www.youtube.com/watch?v=sduqmX_VXB8
It's very simple. Save the file declaring which type it is. If C++, save it as whatever.cpp and it's gonna work.
Your file name should start with lower case alphabet.
We have to simply do one thing i.e. stop the code completion.
Goto "Settings" menu --> "Editor" --> "General Settings" (Left Pallet) --> "Editor settings" tab --> uncheck the "Code completion" checkbox..
Save the setting and you are good to go.. now u will never get that pop-up again..

Is there a way to switch tabs with CTRL+[NUMBER] instead of CTRL+TAB?

I am using Visual Studio Community 2017 and am frequently switching between several class files. The way I am having to do this is by pressing Ctrl+Tab (or Ctrl+Shift+Tab) repeatedly until I reach the desired tab.
It would be more convenient if there was a way to switch between tabs by pressing Ctrl+(tab's index) similar to how browser tabs are navigated. e.g. pressing Ctrl+1 opens the first/leftmost tab on your browser, Ctrl+2 opens the second one, etc.
Looking in Tools > Options > Environment > Keyboard, there are commands that use View.NavigateBackward and View.NavigateForward (The Ctrl+Tab and Ctrl+Shift+Tab functionality) that can be re-mapped - however nothing for the functionality I described above.
There are threads solving this issue for Visual Studio Code, however (and I'm really surprised/must be really dumb that) there are no threads that I could find for just Visual Studio.
Threads for Visual Studio Code:
Is there a quick change tabs function in Visual Studio Code?
https://github.com/Microsoft/vscode/issues/24753
You can switch to a specific tab with a keyboard shortcut with my Tabs Studio extension:
And you can additionally enable the Show tab numbers option to simplify usage of NavigateToTabXX commands:
So... After doing a more sensible search on StackOverflow instead of Google, I've found this thread;
https://stackoverflow.com/search?q=CTRL+Number+Visual+Studio
Which suggested to download a Visual Studio tool called "Hot Tabs". I have done so and it's working well for my purposes at the moment.
Hot Tabs

ID mode problem in MFC

Problem:
I am using Visual studio 2010 MFC c++..
facing this problem
I need actual menus that i naked, but i am in edit ID mode by mistake how can i leave edit mode.. and when i click on any edit ID mode menu.. i received the message provided in the above link
and when i run the project.. it shows no error but even then MFC is not running and displaying the result.Any one can help me to get rid of from thim problem
Expecting a good response..
Thanks
I have no idea what you're trying to ask but...
maybe edit the resource file as text would help?
Apparently you are in ID edit mode and want to leave it. Right click somewhere on empty space and uncheck 'Edit IDs' in the context menu by clicking on it.

Assign to console app an icon (program code) in VS2005

Hi guys :)
I have my console app finished (c++).
And now I'm looking for a way to give it an icon. So when I distribute it, it keeps the icon.
I didn't find anything yet. I would really appreciate some help!
Nobody want to continue helping me? :(
You will need a resource file (.rc) and specify an icon to get it included in the binary. The first icon (the one with the lowest ID number) will be the icon of your application.
Unfortunately the new express editions do not come with an integrated resource editor anymore, but you can use the excellent free alternative ResEd for this task.
You simply have to create a new .rc file, add the icon and then include the .rc file in your c++ project.

Is there a way to know if the user has enabled "single click to open an item" in the control panel?

My program needs to know when the user has enabled "Single-click to open an item (point to select)" in the folder options window in file explorer. I have a mouse aid program and I need to know what this setting is set to programmatically? Is this available in the registry or something?
I think it's SHGetSettings when fDoubleClickInWebView is false
I found this on Kelly's Korner
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"ShellState"=hex:24,00,00,00,13,a8,01,00,00,00,00,00,00,00,00,00,00,00,00,00,\
01,00,00,00,0d,00,00,00,00,00,00,00,02,00,00,00
I don't know which value sets the single click mode, so you'll have to disable it and compare the registry with this string to see which it is.
The same information is on a Microsoft support page, but as it's referring to IE 4 and IE 5 I was worried it was outdated.
There's a reg file you can download, but it appears to be missing the initial open double quote.