<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'denali' and 'keyboard shortcuts'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=denali,keyboard+shortcuts&amp;orTags=0</link><description>Search results matching tags 'denali' and 'keyboard shortcuts'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>SQL Server v.Next (Denali) : Getting Ctrl+R to work again</title><link>http://sqlblog.com/blogs/aaron_bertrand/archive/2011/07/14/sql-server-v-next-denali-getting-ctrl-r-to-work-again.aspx</link><pubDate>Thu, 14 Jul 2011 15:52:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:36940</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;Ctrl+R is a good friend of mine - we go way back. It is very handy to use this command not only to hide the results pane away and focus on the query at hand, but to also be able to bring the results back just as quickly - without having to run the query again, or mess with click + drag nonsense.&lt;/p&gt;&lt;p&gt;In Denali, we get a new version of SSMS, tightly integrated into the Visual Studio shell. With that we get some great benefits (and &lt;a href="http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/23/sql-server-11-denali-the-new-vs-shell.aspx" title="http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/23/sql-server-11-denali-the-new-vs-shell.aspx" target="_blank"&gt;I've talked about them before&lt;/a&gt;). In that post I also point out some of the problems - they've fixed the double-click on an error message bug, for example, but they haven't fixed some other things, such as Ctrl+U = lower case, instead of the more logical Ctrl+Shift+L (to match Ctrl+Shift+U for upper case).&lt;/p&gt;&lt;p&gt;The one that really got my goat yesterday is that Ctrl+R has been assigned to some other function. On a freshly-minted virtual machine, with a brand new install of Windows 7 (including 88 items from Windows Update), I laid down a clean install of Denali (very simple - just engine, BIDS, BOL and management tools - no Juneau, Visual Studio, Analysis Services or other BI features, etc etc). On the first launch of SSMS (where I am supposed to be asked for my keyboard preferences, but no prompt appeared), I opened a new query window, typed "SELECT 1;", and hit F5. I received a results pane with (No column name) / 1. Exactly as I expected. Then the trouble begins. I hit Ctrl+R; nothing happens. I wonder if I pressed the wrong letter, didn't fully press Ctrl, or what, so I press it again. My computer beeps at me like I was trying to double-click on the A: drive in Windows Explorer.&lt;/p&gt;&lt;p&gt;As a true sign of my insanity, I keep trying - expecting a different outcome with the same input. Then I notice the status bar changing as I fruitlessly try to make the results pane go away. On first press of Ctrl+R, I see this in the bottom left corner:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;img src="http://bertrandaaron.files.wordpress.com/2011/07/ctp3status1.png" height="25" width="320"&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;And when I press it again, along with the beep, the status bar changes to this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;img src="http://bertrandaaron.files.wordpress.com/2011/07/ctp3status2.png" height="21" width="310"&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Okay, so now we're onto something - it seems this change was intentional. So off I go to Tools / Options / Keyboard / General to see what's what. In the middle box, select Window.ShowresultsPane, change the "Use new shortcut in:" dropdown to SQL Query Editor (Global did not work for me), put your cursor in the "Press shortcut keys:" box and hit CTRL + R. You should see the following:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;img src="http://bertrandaaron.files.wordpress.com/2011/07/ctp3ctrlr.png" border="1" height="440" width="490"&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;So I'm not sure what this Edit.SwapAnchor command is supposed to be, or why I give a rip about some DataWarehouse Designer - as I thought I had voted, simply by my installation choices, that I'm not crazy into BI. I'm sure this command is important to someone, and for them, the default will work just fine. For the other 99.99% of Management Studio users, you can fix this now by clicking Assign and then OK. Unlike some other changes that still require an SSMS restart to take effect (e.g. experimenting with font choices in grid results can be fun), the change takes effect immediately.&lt;br&gt;&lt;/p&gt;&lt;p&gt;If you want to fix many of these keyboard shortcuts in one swoop, see this post from Denny Cherry (&lt;a href="http://twitter.com/mrdenny" title="http://twitter.com/mrdenny" target="_blank"&gt;@mrdenny&lt;/a&gt;), where he provides a settings file you can import easily (just be aware that not all of his customizations match the original 2008 R2 settings exactly): &lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://itknowledgeexchange.techtarget.com/sql-server/resetting-ssms-shortcut-keys-in-sql-server-denali-ctp-3/" title="http://itknowledgeexchange.techtarget.com/sql-server/resetting-ssms-shortcut-keys-in-sql-server-denali-ctp-3/" target="_blank"&gt;http://itknowledgeexchange.techtarget.com/sql-server/resetting-ssms-shortcut-keys-in-sql-server-denali-ctp-3/&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;I am hoping that the RCs or, at the very least, the RTM versions, show a keyboard scheme that says "SQL Server settings" instead of a generic "default." And that this default does not include Ctrl+R being assigned to a DataWarehouse Designer operation unless I say I want it that way.&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;EDIT&lt;/b&gt;&lt;br&gt;Microsoft has published the official instructions for resetting the keyboard, should you find yourself in this situation, and there is in fact a SQL Server mode (the choices in Tools/Options, "default" and "Visual Studio 2010 Compatible" are not that obvious - again, I'm hoping this gets changed to match the reset dialog). See the following blog post for more info:&lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://blogs.msdn.com/b/sqlrem/archive/2011/07/13/enhanced-keyboard-shortcuts-in-ssms-in-denali.aspx" title="http://blogs.msdn.com/b/sqlrem/archive/2011/07/13/enhanced-keyboard-shortcuts-in-ssms-in-denali.aspx" target="_blank"&gt;http://blogs.msdn.com/b/sqlrem/archive/2011/07/13/enhanced-keyboard-shortcuts-in-ssms-in-denali.aspx&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item></channel></rss>