{"id":2883,"date":"2009-11-04T08:39:00","date_gmt":"2009-11-04T08:39:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/2009\/11\/04\/improvements-to-vs-2010-text-selection\/"},"modified":"2019-02-14T15:42:11","modified_gmt":"2019-02-14T23:42:11","slug":"improvements-to-vs-2010-text-selection","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/improvements-to-vs-2010-text-selection\/","title":{"rendered":"Improvements to VS 2010 Text Selection"},"content":{"rendered":"<div id=\"author\">\n<p><strong><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/BBehrens%20Badge%20Photo_2.png\"><img decoding=\"async\" title=\"Brittany Behrens\" border=\"0\" alt=\"Brittany Behrens\" align=\"left\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2009\/11\/BBehrens20Badge20Photo_thumb.png\" width=\"60\" height=\"79\"><\/a> Brittany Behrens<\/strong> \u2013 Program Manager, Visual Studio Editor Team <br \/><strong>Short Bio<\/strong>: I\u2019m Brittany, a Program Manager on the Visual Studio Editor team.&nbsp; Some of you may recognize me from <a href=\"http:\/\/connect.microsoft.com\/VisualStudio\">Connect bugs<\/a> or as the main voice of <a href=\"https:\/\/twitter.com\/VSEditor\">@VSEditor on Twitter<\/a>, and I\u2019m responsible for a variety of Editor features.&nbsp; I love hearing from customers, so please let me know what you think!<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p>As you may have noticed, text selection in Visual Studio 2010 is a bit more colorful than in previous versions.&nbsp; In VS 2008 and earlier, selected text had a single foreground color and a single background color, usually white text on a navy blue background by default.&nbsp; However, we have made substantial changes and improvements to the Visual Studio Editor for this release, including the new for VS 2010 ability to compose different display layers together. One of the many benefits of this is that we can combine the background color for selection with the foreground colors for a variety of other display items (plain text, keywords, comments, etc.) to show syntax coloring not only for unselected text but now for selected text as well, which we think makes selected code easier to understand.&nbsp; Check out this side-by-side comparison to see the difference:<\/p>\n<p><img decoding=\"async\" title=\"Selection in Visual Studio 2008 vs. Visual Studio 2010\" border=\"0\" alt=\"Selection in Visual Studio 2008 vs. Visual Studio 2010\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2009\/11\/Both20v1_3.png\" width=\"643\" height=\"229\"> <\/p>\n<p>In light of this new mini-feature, we intentionally disabled the foreground color option for Selected Text in Tools-&gt;Options-&gt;Environment-&gt;Fonts and Colors.&nbsp; Because selected text doesn\u2019t have a single foreground color but instead retains whatever syntax coloring it had when not selected, an option for selected text foreground color doesn\u2019t make sense for Visual Studio 2010.&nbsp; For Beta2, the Tools-&gt;Options preview for Selected Text always shows the VS 2008-style white foreground color, which we realize can be confusing.&nbsp; We\u2019ve already updated this internally so that for VS 2010 RTM, the Item Foreground Color dropdown and the Sample preview box will show your default Plain Text foreground color instead of white, giving you a more accurate idea of what selected text will look like in the editor.<\/p>\n<p>This is one of many improvements we were able to make by moving the editor to WPF \u2013 hope you enjoy it!<\/p>\n<p>Brittany Behrens <br \/>Program Manager, Visual Studio Editor Team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Brittany Behrens \u2013 Program Manager, Visual Studio Editor Team Short Bio: I\u2019m Brittany, a Program Manager on the Visual Studio Editor team.&nbsp; Some of you may recognize me from Connect bugs or as the main voice of @VSEditor on Twitter, and I\u2019m responsible for a variety of Editor features.&nbsp; I love hearing from customers, so [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[13,20],"class_list":["post-2883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-visual-studio-2010","tag-wpf"],"acf":[],"blog_post_summary":"<p>Brittany Behrens \u2013 Program Manager, Visual Studio Editor Team Short Bio: I\u2019m Brittany, a Program Manager on the Visual Studio Editor team.&nbsp; Some of you may recognize me from Connect bugs or as the main voice of @VSEditor on Twitter, and I\u2019m responsible for a variety of Editor features.&nbsp; I love hearing from customers, so [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/2883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=2883"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/2883\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=2883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=2883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=2883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}