Visual Studio "text editor" how to save settings? - visual-studio-2013

My text editor in Visual Studio 2013 I was making is complete however now I need to figure out how I can save the settings (font, background color, font color etc) so when the user exits the program these settings will be saved somehow like in a .ini file but I have no clue how I am gonna make a function like that.
Any ideas?

Related

Using visual studio 2019 in dark mode with high contrast in Windows 10

Is there anyone who is using Visual studio 2019 in dark mode with High contrast?
If yes, can you tell me exactly how to do that?
As far as I know, Visual studio doesn't have an option to use High contrast for dark mode (it's there only for blue theme which I don't want).
And also if I change my Windows OS to use high contrast mode and come back to Visual studio, and then by default VS adjusts itself to high contrast but it's very poor to read (it reads like plain white text on a black blackground devoid of any other colors)
I was wondering if there's something in VS 2019 which is similar to Visual studio code high contrast mode or maybe IntelliJ Idea which is very user friendly and serves the purpose.
Thanks in advance.
You can enable dark mode in the VS2019 by modifying a private registry in a next way:
Close all instances of VS2019
Press Ctrl+R and run regedit
Expand HKEY_USERS elements in the tree
File -> Load Hive...
In the dialog navigate to C:\Users\<UserName>\AppData\Local\Microsoft\VisualStudio\16.0_XXXXXXXX and load privateregistry.bin file. It will ask you to give some name, for example, "vs2019". (it might be useful to store somewhere a copy of privateregistry.bin file for backup)
Export te “Dark” theme registry key: HKEY_USERS\vs2019\Software\Microsoft\VisualStudio\16.0_????????_Config\Themes\{1ded0138-47ce-435e-84ef-9ec1f439b749}
Replace the GUID of the “Dark” theme ({1ded0138-47ce-435e-84ef-9ec1f439b749}) with the GUID of the “High Contrast” theme ({a5c004b4-2d4b-494e-bf01-45fc492522c7})
Import the reg file
Important: Click on vs2019 -> File -> Unload Hive...
Note, it might happen after Windows or VS updates, your setting will be erased. In this case, you need only to load hive, import modified file from step 7, and don't forget to unload hive.
Inspired by this post: Visual studio 2017 high contrast theme dark registry hack
Visual Studio likes resetting this pretty often so I made a cmd script that lets you select what theme to override 'High Contrast' with instead of doing all of those steps manually each time.
Get the script here.
The most clean way is to modify the current used theme as this is the behaviour Visual Studio executes when changing themes in the settings.
Close all instances of Visual Studio 2019 / 2022
Press Ctlr+R and run regedit
In the node tree, expand HKEY_USERS
Press File -> Load Hive...
In the dialog navigate to C:\Users\<UserName>\AppData\Local\Microsoft\VisualStudio\16.0_XXXXXXXX or if you use Visual Studio 2022 C:\Users\<UserName>\AppData\Local\Microsoft\VisualStudio\17.0_XXXXXXXX and load the privateregistry.bin file. It will ask you to give some name, for example, "vs2019". (before proceeding a backup of the privateregistry.bin file is advised)
Navigate to HKEY_USERS\vs20xx\Software\Microsoft\VisualStudio\1x.0_xxxxxxxx\ApplicationPrivateSettings\Microsoft\VisualStudio
There, set the value of ColorTheme and ColorThemeNew to 0*System.String*1ded0138-47ce-435e-84ef-9ec1f439b749 and 0*System.String*{1ded0138-47ce-435e-84ef-9ec1f439b749} respectively. If you wish any other color please check HKEY_USERS\vs20xx\Software\Microsoft\VisualStudio\1x.0_????????_Config\Themes\ for the theme IDs.
Click on the loaded node in the node tree named vs20xx and then File -> Unload Hive...
This will change the setting in Visual Studio to use a different theme instead of changing the themes themselves and will most likely be persistent after updates.

How do I change the color of .txt files in visual studio 2013

In Visual Studio 2013, when I edit a text file (.txt extension), the default text editor comes up with the text in an unreadable peach color. I've gone through every single setting in Tools -> Options -> Fonts and Colors to try to change it, but nothing I change under "Text Editor" makes a bit of difference. I've also tried resetting all settings, and nothing.
Any thoughts on what is going on, and how I can reset the colors for editing .txt files to something sane?

Class names not coloured in Visual Studio 2012

I am evaluating Visual Studio 2012 and am having some problems with the color schema.
Sure enough I was able to overcome the initial discomfort by setting my color for the text editor.
One thing I have not been able to set corrent are the color for the class names.
Say you have a line like below.
Class name = new Class();
the entire line is in the same color, expect the new keyword.
I want the word 'Class' to be in a different color like in earlier versions of Visual Studio.
I am not able to set the color for this from the Option.
I have tried chaning color for all fields like plain text, literals, identifier, etc under
Tool -> Option -> Environment -> Font & Colors
but still I am not able to fix this.
I have also applied custome themes, those are also not helping.
I wouldn't want to install a productivity power tool for such basic preference right ??
Edit:
I'm on Windows 7 x64 and Visual Studio Professional 2012, Version 11.0.50727.1 RTMREL
The solution I found is a combination of the suggestions found in a mish mash of related threads:
Close Visual Studio and open the VS command prompt as an administrator. Navigate to the devenv.exe file (in Express versions it is titled something along the lines of *express.exe) usually located in C://Program Files (x86)/Microsoft Visual Studio 11.0/Common7/IDE.
Type devenv.exe /setup
Reopen Visual Studio. If everything is all colored now, great! If not, close the tabs and reopen them.
Performing all of step 3 is what has got my coloring to come back to normal.
Here is where I got the suggestions:
Visual Studio 2012 - Intellisense sometimes disappearing / broken
How can I get user type C# syntax highlighting working again in VS 2012 RC?
If you're using Productive Power Tools, go to => Tools -> Options -> Productive Power Tools. In main menu, TURN OFF the option: Colorized Parameter Help.
I solved my problem, I'm on Windows 8 Pro, Visual Studio 2012 Ultimate.
You're on the right track. Under Tools -> Options -> Environment -> Fonts and Colors, you want to change "User Types", first making sure at the top of the dialog that you are viewing the settings for the "Text Editor"
Although, by default with my install of Visual Studio 2012 these were already set, so you may want to try the "Use Defaults" button, unless you've made other changes that you want to keep.
go to the tools >Option click on enviroment navigation and click on import and export setting and copy the url and open directory from the url and delete all font and color file .which you got setting folder
The workaround provided by Donatas on Microsoft Connect works without having to turn off any option of Productivity Power Tools:
There is a workaround without turning off "Colorized Parameter Help".
Go to Tools > Options > Environment > Fonts and Colors in Display
items select "User Types (Value types)" click Custom next to Item
foreground color and in the color picker change Red, Green or Blue by
1, i.e. to make a custom color which basically looks the same. OK on
all the dialogs and problem solved.

Is there plugins/addons for visual studio 2010 to change the code and text editor's background color?

I have been looking for , lets use the word "mods", for visual studio left and right to be able to change the background and font color of the code editor for quite a while now. This is a simple question and hopefully not a duplicate of Is it possible to change backround color of editor and autocomplete tooltips in Visual Studio?. If I can refine my question a bit more, is it possible to manually change the background color of the code and text editor, or does mods or plugins or addons exist somewhere to do this feature for me? My eyes are straining on the white background...
I am using visual studio 2010
From the main menu, go to Tools -> Options. From there open up Environment -> Fonts and Colors. If you don't want to spent the time configuring it that way (which would be completely understandable), download the theme editor, or pick and download a nice theme at http://studiostyl.es/

How to change font color in Visual Studio 2010 SharePoint 2010 Feature Designer?

Within VS2010 I'm using a dark/pastel color scheme. SP2010 Feature Designer has a Manifest tab with a Preview of Packaged Manifest read-only XML pane.
As you can see from the two screenshots, there is text in the pane, but it's basically invisible due to the background pane color.
Is there any way to change the font color, from that light gray to something else? I've tried changing several display items within Tools\Options\Environment\Fonts and Colors with no luck.
As a last resort, is there a way to change the pane background color? (although I guess it'll change that for the whole VS IDE)
Thanks all.
Feature manifest preview, unselected:
Feature manifest preview, selected:
In the end I've found a workaround for this ... for whoever (?) might care.
Download Visual Studio Color Theme Editor extension.
If you need help choosing some specific UI color, download any desktop color picker tool, i.e. Just Color Picker.
From a VS SharePoint project, open some Feature manifest or Package manifest preview so to apply and check the ongoing results.
From within VS, create a new custom theme based on Default. Sort the items by name and look for the couple ProjectDesignerBackgroundGradientBegin/End.
Change both to some darker color, like 475B7E.
This is how it looks like:
Being a Dark Theme sort of guy I've settled on using the Visual Studio 2012 Dark Theme for Visual Studio 2010 which provides a great new look for VS2010.
You'll also need to install the Visual Studio Color Theme Editor and then import the [VS2012-Dark-for-2010.vstheme] file using the Theme, Customize Colors..., Import Theme meu options.

Resources