<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Macro for Adding New Property</title>
	<link>http://www.helixoft.com/blog/archives/14</link>
	<description>Peter Macej - lead developer of VSdocman - talks about Visual Studio tips and automation</description>
	<pubDate>Fri, 08 Aug 2008 00:23:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.2</generator>

	<item>
 		<title>Comment on Macro for Adding New Property by: JM</title>
		<link>http://www.helixoft.com/blog/archives/14#comment-79</link>
		<pubDate>Tue, 19 Feb 2008 13:33:03 +0000</pubDate>
		<guid>http://www.helixoft.com/blog/archives/14#comment-79</guid>
					<description>These lines will prevent the document from losing focus in VS2008:
        DTE.ActiveDocument.Selection.StartOfLine(0)
        DTE.ActiveDocument.Selection.LineDown(False, 9) 'the 9 comes from the numbers of lines in propertyProcedure
        DTE.ActiveDocument.Selection.EndOfLine()
        DTE.ActiveDocument.Selection.NewLine()
        DTE.ActiveDocument.Activate() ' else the cursor is gone or so, a little bit strange (focus is lost)
        DTE.UndoContext.Close()

It also sets the mouse cursor beneath the property which is very usefull when adding a lot of prop's.

Thanks for the macro.</description>
		<content:encoded><![CDATA[	<p>These lines will prevent the document from losing focus in VS2008:<br />
        DTE.ActiveDocument.Selection.StartOfLine(0)<br />
        DTE.ActiveDocument.Selection.LineDown(False, 9) &#8216;the 9 comes from the numbers of lines in propertyProcedure<br />
        DTE.ActiveDocument.Selection.EndOfLine()<br />
        DTE.ActiveDocument.Selection.NewLine()<br />
        DTE.ActiveDocument.Activate() &#8216; else the cursor is gone or so, a little bit strange (focus is lost)<br />
        DTE.UndoContext.Close()</p>
	<p>It also sets the mouse cursor beneath the property which is very usefull when adding a lot of prop&#8217;s.</p>
	<p>Thanks for the macro.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Macro for Adding New Property by: James Manning</title>
		<link>http://www.helixoft.com/blog/archives/14#comment-18</link>
		<pubDate>Sat, 21 Jan 2006 07:27:30 +0000</pubDate>
		<guid>http://www.helixoft.com/blog/archives/14#comment-18</guid>
					<description>In VS2005, make sure to check out Code Snippets

http://www.google.com/search?q=visual+studio+code+snippets</description>
		<content:encoded><![CDATA[	<p>In VS2005, make sure to check out Code Snippets</p>
	<p><a href='http://www.google.com/search?q=visual+studio+code+snippets' rel='nofollow'>http://www.google.com/search?q=visual+studio+code+snippets</a>
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
