<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>Artur Trosin's blog  : ReSharper</title><link>http://weblogs.asp.net/arturtrosin/archive/tags/ReSharper/default.aspx</link><description>Tags: ReSharper</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>ReSharper Tip:  Manual Code Reordering</title><link>http://weblogs.asp.net/arturtrosin/archive/2009/03/16/resharper-tip-manual-code-reordering.aspx</link><pubDate>Mon, 16 Mar 2009 10:33:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6968007</guid><dc:creator>Artur Trosin</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/arturtrosin/rsscomments.aspx?PostID=6968007</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/arturtrosin/commentapi.aspx?PostID=6968007</wfw:comment><comments>http://weblogs.asp.net/arturtrosin/archive/2009/03/16/resharper-tip-manual-code-reordering.aspx#comments</comments><description>&lt;P&gt;Most of you already know what &lt;A href="http://www.jetbrains.com/resharper/" mce_href="http://www.jetbrains.com/resharper/"&gt;ReSharper&lt;/A&gt; is and its power; its shortcuts can improve productivity drastically. That is why I really recommend learning its basic keyboard shortcuts for persons that have already ReSharper license. &lt;A href="http://www.jetbrains.com/resharper/documentation/feature_map.html" mce_href="http://www.jetbrains.com/resharper/documentation/feature_map.html"&gt;Here&lt;/A&gt; is full ReSharper keyboard shortcuts map: http://www.jetbrains.com/resharper/documentation/feature_map.html. &lt;/P&gt;
&lt;P&gt;I don’t want to go through all ReSharper keyboard shortcuts now but I want to show a Tip that I discovered for me few days ago named “&lt;B&gt;Manual Code Reordering&lt;/B&gt;”. For some of you it could not be new but for other it could be that is why I want to demonstrate them in the post. &lt;/P&gt;
&lt;P&gt;Let say you have a method or code block which you want to move UP or Down, usually you will cut it and will paste in right place, for that purpose ReSharper has its keyboard shortcut, so place your cursor on Method Name or other code block and press &lt;B&gt;Ctrl+Alt+Shift&lt;/B&gt; and holding the keys for a while your code block will become selected: &lt;/P&gt;
&lt;P&gt;&lt;IMG title="Method Move" style="WIDTH: 443px; HEIGHT: 226px" height=226 alt="Method Move" src="http://weblogs.asp.net/blogs/arturtrosin/ReSharperTip/MethodName.GIF" width=443 align=middle border=1 mce_src="http://weblogs.asp.net/blogs/arturtrosin/ReSharperTip/MethodName.GIF"&gt; &lt;/P&gt;
&lt;P&gt;Now while holding the keys you can move Up/Down the method within the class, you can do it with any other code blocks or (simple statements, code structure such as if/for/foreach etc..). &lt;/P&gt;
&lt;P&gt;Ok, but it is not all, if you place your cursor on operand then ReSharper will allow you to change operand order using Left/Right keyboard arrows, something like here: &lt;/P&gt;
&lt;P&gt;&lt;IMG title="Operator Move" style="WIDTH: 325px; HEIGHT: 261px" height=261 alt="Operator Move" src="http://weblogs.asp.net/blogs/arturtrosin/ReSharperTip/Operator.GIF" width=325 align=middle border=1 mce_src="http://weblogs.asp.net/blogs/arturtrosin/ReSharperTip/Operator.GIF"&gt; &lt;/P&gt;
&lt;P&gt;Maybe some will find this feature as not so useful (as other), but the shortcut save me some coding time. I hope you like it :). &lt;/P&gt;
&lt;P&gt;Ahh.. I use ReSharper 4.1. And my ReSharper Keyboard Schema is Intellij IDEA. (ReSharper-&amp;gt;Options-&amp;gt;General-&amp;gt;Intellij IDEA) &lt;/P&gt;
&lt;P&gt;PS: If you don’t find something to be useful then maybe you just wasn’t in situation when it would be useful? :) &lt;/P&gt;
&lt;P&gt;Thank you, &lt;/P&gt;
&lt;P&gt;Artur Trosin &lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6968007" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/arturtrosin/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://weblogs.asp.net/arturtrosin/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/arturtrosin/archive/tags/ReSharper/default.aspx">ReSharper</category><category domain="http://weblogs.asp.net/arturtrosin/archive/tags/Tips/default.aspx">Tips</category></item></channel></rss>