Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use a monospaced font in the TableAdapter Configuration Wizard's SQL Statement?

How do I change the fonts used in the TableAdapter Configuration Wizard SQL Statement?

As you see here, the alignment of the Query is wrong, so I want to set this box so it uses a monospaced font like "Consolas" or "Courier New".

TableAdapter Configuration Wizard

I think I need to change something in Tool - Options - Environment - Fonts and Colors:

Tool - Options - Environment - Fonts and Colors

But I cannot find which setting/display item I need to select to change it. There's one named "Query and View Designer" but it (only) changes the font when you use the Query builder by clicking the "Query builder" button.

How do I do this? Do I need to change a setting somewhere else?

like image 803
DavRob60 Avatar asked Mar 22 '11 14:03

DavRob60


2 Answers

It looks like this wizard has a TextBox, probably in WPF since Visual Studio 2010 is mostly WPF. Since Visual Studio has many hooks to support extensions, it is possible that an extension could be created. I would not use my time trying to find it--my gut is that down such a path lies much suffering.

Seems easier to leave open a SQL Management Studio query window (or a SQL syntax-highlighting text editor of your choice) on the side, then copy and paste as needed.

like image 52
Patrick Szalapski Avatar answered Nov 08 '22 16:11

Patrick Szalapski


Sure, just ask Microsoft to add it in ;-)

https://connect.microsoft.com/VisualStudio/feedback/details/657090/make-fonts-and-colors-query-and-view-designers-affect-tableadapter-configuration-wizard

like image 25
Pandincus Avatar answered Nov 08 '22 18:11

Pandincus