{"id":240642,"date":"2022-12-06T08:00:54","date_gmt":"2022-12-06T16:00:54","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=240642"},"modified":"2022-12-05T11:14:14","modified_gmt":"2022-12-05T19:14:14","slug":"whats-new-in-visual-studio-productivity","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/whats-new-in-visual-studio-productivity\/","title":{"rendered":"What\u2019s new in Visual Studio productivity"},"content":{"rendered":"<p>We often hear feedback from users like you that request smaller quality-of-life improvements in Visual Studio. While we can\u2019t address every piece of feedback right away, we appreciate the time you spend providing it and hope you continue to share your thoughts on how to make Visual Studio even better. In today\u2019s blog post, we\u2019d like to share a handful of these enhancements that can help you improve your personal productivity. You\u2019ll now find:<\/p>\n<ul>\n<li>A timestamp feature added to the Output window to help you quickly identify where time is going during your build or other processes<\/li>\n<li>Selection matching quickly identifies other instances of a given selection<\/li>\n<li>The ability to scroll horizontally with the mouse wheel allowing you to parse through your code more quickly<\/li>\n<li>Audio cues to provide additional sensory feedback while navigating your code<\/li>\n<li>A highlight on the current line number to draw your attention more easily<\/li>\n<\/ul>\n<p>You can start using all these features today in the latest release of Visual Studio:<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/visualstudio.microsoft.com\/downloads\/\" target=\"_blank\">Download Visual Studio<\/a><\/div><\/p>\n<h3>Timestamps in the output window<\/h3>\n<p>When an operation takes more than a few milliseconds, it can be useful to know the specific times that individual steps take. The timestamp feature adds the time that each line is added to the Output window or any other log-type window.<\/p>\n<p><figure id=\"attachment_240645\" aria-labelledby=\"figcaption_attachment_240645\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/12\/Timestamp.png\"><img decoding=\"async\" class=\"size-full wp-image-240645\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/12\/Timestamp.png\" alt=\"The output window from Visual Studio. The Show Timestamp button (which appears like a clock) at the right edge of the toolbar is enabled with a purple outline. Each line in the output window shows the time that the line was added to the output window in a 24 hour format including hours, minutes, seconds and milliseconds.\" width=\"624\" height=\"217\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/12\/Timestamp.png 624w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/12\/Timestamp-300x104.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/a><figcaption id=\"figcaption_attachment_240645\" class=\"wp-caption-text\">Output window with timestamps shown<\/figcaption><\/figure><\/p>\n<p>To enable the Timestamps, invoke the Show Timestamp button (which looks like a clock) on the right side of the toolbar. You can also hit Alt-S while focus is in the Output window to move focus to the toolbar and repeatedly press Tab to get to the Show Timestamp button to toggle it on or off.<\/p>\n<p>With timestamps enabled, the time will be prepended any time a line is added to the log. Enabling or disabling the timestamps won\u2019t retroactively add or remove timestamps to lines in the log, it will only be applied to any lines as they are added to the log.<\/p>\n<h3>Quickly see matches with selection matches<\/h3>\n<p>This feature activates whenever a range of characters are selected in the editor that has 100 or less characters and is on a single line. When these conditions are met, Visual Studio finds and highlights any matching strings elsewhere in the editor. Additionally, any matches will be marked in the scrollbar if the \u201cMap mode\u201d scrollbar is enabled.<\/p>\n<p><figure id=\"attachment_240644\" aria-labelledby=\"figcaption_attachment_240644\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/12\/Selection-Highlights.png\"><img decoding=\"async\" class=\"size-full wp-image-240644\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/12\/Selection-Highlights.png\" alt=\"The Visual Studio editor. On line 26, the string &quot;catalog&quot; is selected. Throughout the editor, every instance of either &quot;Catalog&quot; or &quot;catalog&quot; is highlighted. The scrollbar on the right also has tickmarks representing each match.\" width=\"624\" height=\"404\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/12\/Selection-Highlights.png 624w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/12\/Selection-Highlights-300x194.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/a><figcaption id=\"figcaption_attachment_240644\" class=\"wp-caption-text\">Highlighting strings that match the selection<\/figcaption><\/figure><\/p>\n<p>The highlight is a case-insensitive match and will match strings that differ by case. To enable or disable the feature, head to Tools\\Options and look for the \u201cShow selection matches\u201d option on the Text Editor\\General page.<\/p>\n<h3>Scroll horizontally with the mouse wheel<\/h3>\n<p>We\u2019ve heard the feedback and we now have the ability in Visual Studio to use the mouse wheel to scroll the editor horizontally as well as vertically. Holding down the shift key while rolling the mouse wheel will cause the editor to scroll horizontally.<\/p>\n<p>To modify the speed for horizontal mouse scrolling, head to Tools\\Options and navigate to the Text Editor\\Advanced page. Near the bottom of the list is an entry for Horizontal scrolling sensitivity. Increase the value in this box to cause the editor to scroll by more characters each time the mouse wheel is rolled.<\/p>\n<h3>Orient to your code with audio cues<\/h3>\n<p>Audio Cues are a feature that we realized was particularly valuable for our developers with visual disabilities. We\u2019ve also been hearing from folks across our entire user base that they use them. These simple sounds can help users orient themselves quickly to what\u2019s going on in their code.<\/p>\n<p>To enable audio cues, head to Tools\\Options and navigate to the Text Editor\\General page. Near the top of the page is an option for \u201cEnable audio cues\u201d. If this box is checked when Visual Studio starts, Audio Cues will be enabled. Currently, Visual Studio has audio cues for the following events:<\/p>\n<ul>\n<li>When the caret arrives on a line that was added or removed when viewing a diff between two versions of a file<\/li>\n<li>When the caret arrives on a line with an error, breakpoint, or warning<\/li>\n<\/ul>\n<p>While editing your code, if any of these events occur, Visual Studio will play the corresponding sound. If multiple events occur, only the highest priority sound will play.<\/p>\n<p>To customize these sounds, go to the Settings in Windows and search for \u201cChange System Sounds\u201d. This will bring up the Sound panel and switch to the Sounds tab. Near the bottom of the Program Events list are the Microsoft Visual Studio events, which include these events and several other events that Visual Studio also recognizes. The other events can be configured, but these aren\u2019t controlled by the \u201cEnable audio cues\u201d option on the Text Editor\\General page from Visual Studio. You can use the Sound panel to disable any individual audio cue by setting its sound to (None).<\/p>\n<h3>Highlighting helps quickly identify the current line number<\/h3>\n<p>This feature makes it easier to identify the current line number at a glance by highlighting the current line number.<\/p>\n<p><figure id=\"attachment_240643\" aria-labelledby=\"figcaption_attachment_240643\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/12\/Line-Number-Highlight.png\"><img decoding=\"async\" class=\"size-full wp-image-240643\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/12\/Line-Number-Highlight.png\" alt=\"The Visual Studio editor. The caret is on line 12 and on the left where the line numbers are displayed, the 12 is highlighted in a brighter white compared to the grey used for the other lines.\" width=\"624\" height=\"183\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/12\/Line-Number-Highlight.png 624w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/12\/Line-Number-Highlight-300x88.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/a><figcaption id=\"figcaption_attachment_240643\" class=\"wp-caption-text\">Current line number highlighted<\/figcaption><\/figure><\/p>\n<p>To customize how the current line number appears, head to Tools\\Options and navigate to the Fonts and Colors page. The \u201cLine Number (Current)\u201d item controls the attributes for the current line number.<\/p>\n<h3>Your vote matters!<\/h3>\n<p>We hope these features help you become more productive using Visual Studio and would like to thank you once again for sharing your feedback. Head over to <a href=\"https:\/\/developercommunity.visualstudio.com\/\">Developer Community<\/a> to join in on the conversation with us by voting for suggestions that would make you more productive or provide new feedback to help us continue delivering new features that excite you. Thank you for being an important part of the Visual Studio family!<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/visualstudio.microsoft.com\/downloads\/\" target=\"_blank\">Download Visual Studio<\/a><\/div><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We often hear feedback from users like you that request smaller quality-of-life improvements in Visual Studio. While we can\u2019t address every piece of feedback right away, we appreciate the time you spend providing it and hope you continue to share your thoughts on how to make Visual Studio even better. In today\u2019s blog post, we\u2019d [&hellip;]<\/p>\n","protected":false},"author":13892,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[6879,526,6815],"class_list":["post-240642","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-editor","tag-productivity","tag-visual-studio-2022"],"acf":[],"blog_post_summary":"<p>We often hear feedback from users like you that request smaller quality-of-life improvements in Visual Studio. While we can\u2019t address every piece of feedback right away, we appreciate the time you spend providing it and hope you continue to share your thoughts on how to make Visual Studio even better. In today\u2019s blog post, we\u2019d [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/240642","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\/13892"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=240642"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/240642\/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=240642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=240642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=240642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}