No xaml color formatting in visual studio 2012 - xaml

This is the second time i have installed VS 2012 and the first time the color formatting for xaml was working but not anymore. If i can change some element in the tools -> fonts and colors but i cant get the normal default scheme back with the blue | red | yellow look, even if i change back to defaults.
Any help would be nice. Thanks

I've had this exact same issue. The solution is:
close all running instances of Visual Studio
open a "Run" window and type in devenv /resetuserdata
That's it. Open your projects again and everything should work fine.
Beware: your personal settings will be lost. Recently opened projects list also.

Right click on the .xaml file -> open with option from the list choose HTML Editor With Encoding

You can try Tools -> Options -> Environment -> Fonts & Colors and Display Items as Use Defaults..as suggested by gerdi...Also make sure all options are ticked Under Tools -> Options -> TextEditor -> General...

Related

Change font of output console in Visual Studio?

I'm a beginner programmer using visual basic on visual studio working mostly with Consoles, and I would like to change the font size of the text that the compiler outputs displays when the code is compiled (not the text when I'm coding, those are fine). Here's what it looks like, compare it to the exit, minimise buttons and the file directory on the title bar for size references
Right now, the font size is like 8pt which is annoying.
Open the options window and go to the Fonts and Colors item. Select the window you'd like to change and then change the font-size to your liking:
You'll likely need to change multiple items, since each window uses its own settings:
Output Window
Command Window
Immediate Window
And possibly others.
To change the font size of the console that launches when you debug an application, you need to change the default font size for the windows console.
Start a command-prompt and then open the options screen
Set the font size:
This will apply to all consoles that open in the future.
None of the solutions suggested by jessehouwing worked for me (using Visual Studio 2017).
What did work was running a console program to open the console, clicking the small icon on the left in the title bar of the console window, clicking properties, fonts, and chosing the preferred font size.
After running and seeing the console windows,
In VSC 2019 go to File -> Preferences -> Settings -> Features -> Terminal and find option of font-size and change to apropriate value for your needs.Question isnt really clear what you exactly need but for all settings of font-size-s is pretty the same path to the solution.

How to google from the context menu of the Visual Studio 2015 code editor

how can I modify Visual Studio 2015 to be able to search the internet (my fav search engine happens to be google) from the context menu in the code editor?
Ideally, I would like it to open as a new tab in my (default) external browser, because the internal web browser is still...lacking, shall we say?
I found one extension "web search" for older VS, but I have found no extension that works with VS 2015. I found no article that still works.
For comparison, when you're in Chrome, you can select some text, right click and say Search Google for 'what you selected'.
I think this would be handy when learning new technologies from a project that uses those technologies, or just for help.
Ok this turned out to be fairly easy. I just added a tool to Tools, External Tools
Command: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Arguments: https://www.google.com/?gws_rd=ssl#newwindow=1&safe=active&q=%22$(CurText)%22
I enclosed the $(CurText) variable around quotes (%22) so that it would search on the exact phrase.
Then, to make it more accessible and actually put it in the context menu (and other places), I clicked the Move Up button to make it the first command, then customized the Standard toolbar to include Tools.External Command 1. I also added it to Other Context Menus | Html Context and Editor Context Menus | Code Window
Then I also went into Tools, Options, Keyboard and associated Tools.ExternalCommand1 with Alt+G
IMPORTANT: Because Visual Studio (still, in 2015) doesn't save some modifications to the IDE until it shuts down, you need to shut down all other instances of VS and then lastly shut down the instance that you used to enact these IDE modifications for them to "stick". And, if VS 2015 is like previous versions, be prepared for the menu / toolbar modifications to simply go away one day, at which point you'll just have to redo them.

How to get rid of a vertical line in the editor pane of IntelliJ Idea?

recently a gray vertical line appeared in about the middle of the editor pane of my IntelliJIdea Community Edition 13.1.4 probably due to some manipulations with the settings that I cannot remember. I cannot find how to get rid of it, which is annoying. Who can help?
Thanks.
Updated answer:
Go to Preferences → Editor → General → Appearance and uncheck Show hard wrap and visual guides.
Original answer:
Go to Settings → Editor → General → Appearance and uncheck Show Right Margin.
You can also configure where the right margin is in the code style settings.
It is called 'Show hard wrap guide' now,
located in Editor > General > Appearance
In new versions of JetBrains IDEs, Hence, After 2017, you should search show hard wrap guide. see below screenshot:
It's inside of Editor > General > Appearance
In mac Command+Shift+A .. Search for "show right margin" . Press enter to turn it off. Booom
Go to settings and type line separator in search and hard wrap it to 180
For PyCharm 2017 and aboce it was moved, but can still be done by:
Editor > Color Scheme > General. Then in the new control to the right, open Editor > Guides > Hard wrap guide, and uncheck the checkbox for "Foreground".
2018-10-31
Settings -> Editor -> Code Style
you can find 'Hard wrap at [value] columns'.
230 columns is good to me.
Windows JetBrains Rider 2022:
File->Settings->Editor->General->Appearance
Uncheck "Show hard wrap and visual guides (configured in Code Style options)"
On windows, for IntelliJ IDEA 2021.3 (Community Edition):
File
-> Settings
-> Editor
-> General
-> Appearance
-> Uncheck "Show indent guides"
In version IntelliJ IDEA 2022.3 (Community Edition)
Build #IC-223.7571.182, built on November 29, 2022
You can browse to:
File -> Settings -> Editor -> General -> Appearance
Uncheck "Show hard wrap and visual guides (configured in Code Style options)
Or optionally if you really don't want to browse this long, just search on top left search option as "Hard wrap" or "visual guides".

Visual Studio 2013 - Change background color of Peek Definition Window

I use Visual Studio 2013 Ultimate, Resharper 8 and own color scheme from http://studiostyl.es/.
I would like change background color in peek definition window because now is yellow :(.
Maybe this cause own color scheme. I am not sure. It is possible change background color of peek window in Visual Studio?
Now look like this :(
The way I resolved this was through the following steps:
Navigate to Tools -> Options -> Environment -> Fonts and Colors
Make sure Text Editor is selected within the "Show settings for:" drop down
Within the "Display items:" list box find all Peek settings and adjust to your preferred styling.
Hope this helps.

View Designer Code in Visual Studio 2010

What is a standard way to open the Designer (automatically generated) code for a VB file?
As a workaround, I can get to it by searching the entire solution for some keyword that is usually only found in those files: Global, Partial, etc.
Open the Solution Explorer. Along the toolbar at the top there is a tool Show All Files (it is the 2nd from the left on my version of visual studio). Click on that tool. All of your Form files will now have an arrow beside them. click on that arrow to expand. Look for the code file named FormName.designer.vb. Double-click on it to open.
You have to click the "show all files"-Button. Then you can also see the Designer.vb-files.
Note: For C# and VS 2008, but the same applies to VB in VS 2010.
http://peterkellner.net/2007/12/31/visualstudioshowallfiles/
http://blog.brianhartsock.com/2009/09/14/visual-studio-tip-show-all-file/
Keyboard shortcut for Show All Files
Show All Files is a useful little button in the Visual Studio solution explorer to give us a full view of the directory structure our project files are sitting in. When it is off, we only see the files that are explicitly included in the project, but when it is on, we see everything. This makes it very easy to explicitly opt a file into the project without doing an add -> existing item -> find existing item in directory structure and add to project.
The default when creating a new Visual Basic application in Visual Studio is to not show all files, and unfortunatly there is no setting you can adjust to change that.
Open the code file, and in the top-right corner of the code window is a drop-down containing all methods. Open this and select "InitializeComponent".
A screenshot from a newer version. Visual Studio 2015 and 2017 will look like this.