Change default font in visual studio - visual-studio-2010

The default font in Visual Studio 2010 is Microsoft Sans Serif.
Is there a way I can change the default font for the current project so that I don't have to change it for every forms and controls I add ?

The best way to do what you require is to create a custom template.
Create a new WinForm project
Customize the default form with your preferred font
Save the project
On the file menu select Export Template
Follow the wizard
Now when you add a new form you should find the new template in the list of the available items

Here's a better solution: http://msdn.microsoft.com/en-us/library/ms165337%28v=vs.80%29.aspx
:-)

Related

Visual Studio - How save *changes* to current customized window layout?

Starting with Visual Studio 2015, there is a feature to save multiple customized layouts of the windows (panes) of the IDE.
"Save Window Layout" is the menu command to create a new one of these.
It asks for the name to save the layout as.
But now that I've created several layouts, I don't want to create a new one; I want to save an updated version of one of my layouts. I want that to replace the existing one, with the same hot key shortcut.
How do I do so?
Do "Save Window Layout".
When it asks for layout name, type in exactly the same name as before.
This results in message box:
A layout named '...' already exists.
Do you want to replace it?
Answer [Yes].
(Tested in Visual Studio 2017 Enterprise, v.15.9.6.)

set custom form on visual studio 2013

I want to change the default form control on on visual studio 2013. Not to edit a form after creating, but when i click on "add>>windows form" I want my custom form to show up, with the correct font and size and color scheme. Has anyone done this?
Create an item template. File + Export Template. – Hans Passant

Extending VisualStudio

I want to extend Visual Studio such that, when someone right clicks on Solution Explorer, context menu should have a new menu item, say "Open custom form", clicking which should open a form (this form would actually accept some settings and modify config file accordingly)
Q1. Please provide on where should I start for such extension. Couldn't find any reference/tutorial link :(
Q2. What technology can be used to make such a form - Winforms/WPF?
Either Windows Forms or WPF should be fine.
SO: Visual Studio Add-In - adding a context menu item to solution-explorer
Google Code: explorer-popup-add-in
There's a lot of docs on Visual Studio integration here

Register custom file type with custom UI editor in Visual Studio 2010

I found old article called LearnVSXNow and part #30 - Custom Editors in Visual Studio. There is sample project The Blog Item Editor which shows how to make custom file type assigned with custom UI editor for this file type extension (.blit)
This sample uses project VSXtra, which is written for Visual Studio 2008.
Can someone point me to some tutorial, how-to, or something how to do the same for Visual Studio 2010 ? My goal is to register custom file type extension (e.g. *.myext1) within visual studio 2010, and assign my own custom UI designer (WinForms, derived from UserControl) to handle editing content of such file visually.
I found some samples, but each of that shows only changes on code text editor (highlight some words, etc). But i want to show my own toolwindow with my usercontrol within it.
PS: Part of creating custom toolwindow with my own usercontrol within it is not problem, i use VSPackage Builder Project Template to build and register it within visx. My problem is how to register custom file type to use this custom toolwindow to edit file.
While the core text editor changed significantly (nearly a total re-write, designed around MEF) in Visual Studio 2010, the general infrastructure for registering and supplying custom editors/designers did not change.
The 'Creating Custom Text Editors and Designers' page on MSDN is a good place to start. You should also be able to go through the VSPackage wizard and choose "Custom Editor" to get a basic editor in place. It will give you a simple RTF editor.
You can also check out these samples on the MSDN Code Gallery for more ideas and inspiration:
Editor with Toolbox Support
Designer View Over XML Editor
It is usually recommended that editors reside in a document window (as opposed to a tool window). This is the paradigm that nearly all the built-in editors/designers use in Visual Studio, and it's what users expect when opening something from Solution Explorer. Editing things in a ToolWindow can feel a bit unnatural.
My understanding is that VSXtra provides some additional helper/base classes (beyond what Microsoft supports) to make various tasks (like writing a custom editor/designer) simpler. It is by no means required to create a custom editor though.

Display multiple UserControls with the same name in the Visual Studio WinForms designer toolbox

In my WinForms project I have multiple UserControl-s with the same name ("View"), in diferent namespaces.
If I understand well, the designer hides the controls with the same name as the designed control from the toolbox. So when I'm in design mode on one of the "View"-s I don't see the other ones.
Is there a way to change the name displayed in the toolbox for an UserControl ? I have tried using DisplayNameAttribute or ToolBoxItemAttribute with no succes. Also DescriptionAttribute doesn't see to work either (I was expecting the description to be added to the toolbox item tooltip)
Or is there another way to display multiple UserControl-s with the same name in the Visual Studio WinForms designer toolbox ?
Using Visual Studio 2008
You can do this if you add each control to a different tab in the toolbox (just right-click in the toolbox and select Add Tab. Name each after the namespace.). This is how VS supports having controls with the same names between WinForms and web apps, for example.

Resources