<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>The Standard Output (visual studio)</title><link>http://thestandardoutput.com/</link><description></description><atom:link href="http://thestandardoutput.com/tag/visual-studio.xml" type="application/rss+xml" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 12 Oct 2015 07:59:00 GMT</lastBuildDate><generator>https://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>How to use Emacs key bindings in Visual Studio 2010</title><link>http://thestandardoutput.com/posts/how-to-use-emacs-key-bindings-in-visual-studio-2010/</link><dc:creator>Jonas Gorauskas</dc:creator><description>&lt;div&gt;&lt;p&gt;Visual Studio 2008 used to have a Emacs key mapping scheme that you could pick
from the Options dialog under the Keyboard options. Visual Studio 2010 did away
with that key mapping scheme.&lt;/p&gt;
&lt;p&gt;&lt;img alt="VS2010 Keyboard Mapping Schemes" src="http://farm9.staticflickr.com/8167/7524332504_88780c5245.jpg"&gt;&lt;/p&gt;
&lt;p&gt;But those emacs enthusiasts among us who use Visual Studio should not
fear... There is now an Emacs Emulation extension available for VS2010 that you
can install via the Extensions Manager under the Tools menu.&lt;/p&gt;
&lt;h3&gt;Installation&lt;/h3&gt;
&lt;p&gt;To install the Emacs Emulation extension, follow these steps:&lt;/p&gt;
&lt;p&gt;&lt;img alt="VS2010 Extensions Manager" src="http://farm9.staticflickr.com/8023/7524332642_147e3ebc33.jpg"&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open Visual Studio 2010&lt;/li&gt;
&lt;li&gt;Go to the Tools menu&lt;/li&gt;
&lt;li&gt;Select the Extension Manager&lt;/li&gt;
&lt;li&gt;On the Extension Manager dialog, select Online Gallery&lt;/li&gt;
&lt;li&gt;Search the Online Gallery for Emacs (top right)&lt;/li&gt;
&lt;li&gt;Select and install the Emacs Emulation package&lt;/li&gt;
&lt;li&gt;Restart Visual Studio 2010&lt;/li&gt;
&lt;li&gt;From the Options dialog, the Emacs key mapping scheme is now available&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img alt="VS2010 Emacs Keyboard Mapping Scheme" src="http://farm8.staticflickr.com/7130/7524332716_e2e039ab36.jpg"&gt;&lt;/p&gt;
&lt;p&gt;Beyond the default Emacs key bindings, the ones that I find most useful are the
following:&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;Edit.EmacsExtendedCommand&lt;/dt&gt;
&lt;dd&gt;&lt;em&gt;ALT + X&lt;/em&gt; - Places the cursor in the Find/Command box on the Standard toolbar.&lt;/dd&gt;
&lt;dt&gt;Edit.EmacsFindReplace&lt;/dt&gt;
&lt;dd&gt;&lt;em&gt;SHIFT + ALT + 5&lt;/em&gt; - Displays the replace options in the Quick tab of the Find and Replace dialog box.&lt;/dd&gt;
&lt;dt&gt;Edit.EmacsSwapPointAndMark&lt;/dt&gt;
&lt;dd&gt;&lt;em&gt;CTRL + X, CTRL + X&lt;/em&gt; - Moves the cursor to the current mark in the location stack and moves the current mark to the location where the cursor mark was when the command was invoked.&lt;/dd&gt;
&lt;dt&gt;Edit.EmacsCloseOtherWindow&lt;/dt&gt;
&lt;dd&gt;&lt;em&gt;CTRL + X, 1&lt;/em&gt; - When a window is split, this shortcut closes the pane that does not have focus.&lt;/dd&gt;
&lt;dt&gt;Edit.EmacsSplitVertical&lt;/dt&gt;
&lt;dd&gt;&lt;em&gt;CTRL + X, 2&lt;/em&gt; - Splits the current document in half vertically. The current line of code is centered in each window.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;... and that's all, folks!&lt;/p&gt;&lt;/div&gt;</description><category>csharp</category><category>emacs</category><category>programming</category><category>visual studio</category><guid>http://thestandardoutput.com/posts/how-to-use-emacs-key-bindings-in-visual-studio-2010/</guid><pubDate>Sun, 08 Jul 2012 04:33:04 GMT</pubDate></item></channel></rss>