<?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>Helixoft Blog Comments</title>
	<link>http://www.helixoft.com/blog</link>
	<description>Peter Macej - lead developer of VSdocman - talks about Visual Studio tips and automation</description>
	<pubDate>Mon, 20 May 2013 09:20:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.2</generator>

	<item>
 		<title>Comment on How To Show Full File Path (or Anything Else) in VS 2005 Title Bar by: User</title>
		<link>http://www.helixoft.com/blog/archives/32?n=how-to-show-full-file-path-or-anything-else-in-vs-2005-title-bar#comment-649</link>
		<pubDate>Mon, 25 Feb 2013 19:03:20 +0000</pubDate>
		<guid>http://www.helixoft.com/blog/archives/32?n=how-to-show-full-file-path-or-anything-else-in-vs-2005-title-bar#comment-649</guid>
					<description>Works gr8 with VS2010. thnx dude.</description>
		<content:encoded><![CDATA[	<p>Works gr8 with VS2010. thnx dude.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on How To Show Full File Path (or Anything Else) in VS 2005 Title Bar by: dratengon</title>
		<link>http://www.helixoft.com/blog/archives/32?n=how-to-show-full-file-path-or-anything-else-in-vs-2005-title-bar#comment-545</link>
		<pubDate>Tue, 16 Oct 2012 09:55:48 +0000</pubDate>
		<guid>http://www.helixoft.com/blog/archives/32?n=how-to-show-full-file-path-or-anything-else-in-vs-2005-title-bar#comment-545</guid>
					<description>where do u put these code?</description>
		<content:encoded><![CDATA[	<p>where do u put these code?
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on How To Show Full File Path (or Anything Else) in VS 2005 Title Bar by: dratengon</title>
		<link>http://www.helixoft.com/blog/archives/32?n=how-to-show-full-file-path-or-anything-else-in-vs-2005-title-bar#comment-544</link>
		<pubDate>Tue, 16 Oct 2012 09:54:06 +0000</pubDate>
		<guid>http://www.helixoft.com/blog/archives/32?n=how-to-show-full-file-path-or-anything-else-in-vs-2005-title-bar#comment-544</guid>
					<description>Kevin Whitefoot, &quot;If s1(i) s2(i) Then&quot; is &quot;s1(i) &amp;#62; s2(i)&quot; or &quot;s1(i) </description>
		<content:encoded><![CDATA[	<p>Kevin Whitefoot, &#8220;If s1(i) s2(i) Then&#8221; is &#8220;s1(i) &gt; s2(i)&#8221; or &#8220;s1(i)
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Assigning a Keyboard Shortcut to Macro in VS by: Lelala</title>
		<link>http://www.helixoft.com/blog/archives/8?n=assigning-a-keyboard-shortcut-to-macro-in-vs#comment-324</link>
		<pubDate>Wed, 15 Aug 2012 16:24:58 +0000</pubDate>
		<guid>http://www.helixoft.com/blog/archives/8?n=assigning-a-keyboard-shortcut-to-macro-in-vs#comment-324</guid>
					<description>Thanks, especially helpful if you have to connect to IIS explicitly for debugging reasons - a macro for such cases is good example how you can safe time with very simple tricks.
Regards</description>
		<content:encoded><![CDATA[	<p>Thanks, especially helpful if you have to connect to IIS explicitly for debugging reasons - a macro for such cases is good example how you can safe time with very simple tricks.<br />
Regards
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on How To Create and Run Macro in Visual Studio .NET by: Dylan Parry</title>
		<link>http://www.helixoft.com/blog/archives/6?n=how-to-create-and-run-macro-in-visual-studio-net#comment-317</link>
		<pubDate>Thu, 02 Aug 2012 08:23:38 +0000</pubDate>
		<guid>http://www.helixoft.com/blog/archives/6?n=how-to-create-and-run-macro-in-visual-studio-net#comment-317</guid>
					<description>@Khalid It seems that macros aren’t supported by VS 2012 at all. They’ve totally removed the feature as it turns out that less than 1% of users used macros so they decided not to implement it in the new version :(</description>
		<content:encoded><![CDATA[	<p>@Khalid It seems that macros aren’t supported by VS 2012 at all. They’ve totally removed the feature as it turns out that less than 1% of users used macros so they decided not to implement it in the new version <img src='http://www.helixoft.com/blog/wp-images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Multiline Search and Replace in Visual Studio by: Tyson</title>
		<link>http://www.helixoft.com/blog/archives/15?n=multiline-search-and-replace-in-visual-studio#comment-312</link>
		<pubDate>Mon, 02 Jul 2012 21:11:33 +0000</pubDate>
		<guid>http://www.helixoft.com/blog/archives/15?n=multiline-search-and-replace-in-visual-studio#comment-312</guid>
					<description>You are a life saver!  Thank you!</description>
		<content:encoded><![CDATA[	<p>You are a life saver!  Thank you!
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Multiline Search and Replace in Visual Studio by: Yuval</title>
		<link>http://www.helixoft.com/blog/archives/15?n=multiline-search-and-replace-in-visual-studio#comment-310</link>
		<pubDate>Tue, 26 Jun 2012 10:37:08 +0000</pubDate>
		<guid>http://www.helixoft.com/blog/archives/15?n=multiline-search-and-replace-in-visual-studio#comment-310</guid>
					<description>a few tweaks.

1. insert selected text in the search box:
add this code in the MultilineSearchForm constructor, after this comment:
'Add any initialization after the InitializeComponent() call
Dim objDocument As EnvDTE.Document
Dim objTextDocument As EnvDTE.TextDocument
Dim objTextSelection As EnvDTE.TextSelection
Try
    'Get the active document
    objDocument = DTE.ActiveDocument
    'Get the text document
    objTextDocument = CType(objDocument.Object, EnvDTE.TextDocument)
    'Get the text selection object
    objTextSelection = objTextDocument.Selection
    'Set the text
    Me.FindBox.Text = objTextSelection.Text
Catch ex As System.Exception
End Try

2. now it would be very useful to make the macro available in the context menu
http://blogs.msdn.com/b/vseditor/archive/2004/12/14/301111.aspx
you'll be able to highlight a piece of code, right click, execute the macro and the text you highlighted is already in the search box

3. the resizing doesn't work properly. add these lines before each comment:
'
'FindBox
'
Me.FindBox.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
            Or System.Windows.Forms.AnchorStyles.Left) _
            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
'
'Label2
'
Me.Label2.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
'
'ReplaceBox
'
Me.ReplaceBox.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
'
'FindBtn
'
Me.FindBtn.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
'
'FindInFilesBtn
'
Me.FindInFilesBtn.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
'
'ReplaceBtn
'
Me.ReplaceBtn.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
'
'ReplaceInFilesBtn
'
Me.ReplaceInFilesBtn.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
'
'CancelBtn
'
Me.CancelBtn.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)</description>
		<content:encoded><![CDATA[	<p>a few tweaks.</p>
	<p>1. insert selected text in the search box:<br />
add this code in the MultilineSearchForm constructor, after this comment:<br />
&#8216;Add any initialization after the InitializeComponent() call<br />
Dim objDocument As EnvDTE.Document<br />
Dim objTextDocument As EnvDTE.TextDocument<br />
Dim objTextSelection As EnvDTE.TextSelection<br />
Try<br />
    &#8216;Get the active document<br />
    objDocument = DTE.ActiveDocument<br />
    &#8216;Get the text document<br />
    objTextDocument = CType(objDocument.Object, EnvDTE.TextDocument)<br />
    &#8216;Get the text selection object<br />
    objTextSelection = objTextDocument.Selection<br />
    &#8216;Set the text<br />
    Me.FindBox.Text = objTextSelection.Text<br />
Catch ex As System.Exception<br />
End Try</p>
	<p>2. now it would be very useful to make the macro available in the context menu<br />
<a href='http://blogs.msdn.com/b/vseditor/archive/2004/12/14/301111.aspx' rel='nofollow'>http://blogs.msdn.com/b/vseditor/archive/2004/12/14/301111.aspx</a><br />
you&#8217;ll be able to highlight a piece of code, right click, execute the macro and the text you highlighted is already in the search box</p>
	<p>3. the resizing doesn&#8217;t work properly. add these lines before each comment:<br />
&#8216;<br />
&#8216;FindBox<br />
&#8216;<br />
Me.FindBox.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _<br />
            Or System.Windows.Forms.AnchorStyles.Left) _<br />
            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)<br />
&#8216;<br />
&#8216;Label2<br />
&#8216;<br />
Me.Label2.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)<br />
&#8216;<br />
&#8216;ReplaceBox<br />
&#8216;<br />
Me.ReplaceBox.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _<br />
            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)<br />
&#8216;<br />
&#8216;FindBtn<br />
&#8216;<br />
Me.FindBtn.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)<br />
&#8216;<br />
&#8216;FindInFilesBtn<br />
&#8216;<br />
Me.FindInFilesBtn.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)<br />
&#8216;<br />
&#8216;ReplaceBtn<br />
&#8216;<br />
Me.ReplaceBtn.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)<br />
&#8216;<br />
&#8216;ReplaceInFilesBtn<br />
&#8216;<br />
Me.ReplaceInFilesBtn.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)<br />
&#8216;<br />
&#8216;CancelBtn<br />
&#8216;<br />
Me.CancelBtn.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Collapse All XML Comments in VB .NET or C# by: Vineet tiwari</title>
		<link>http://www.helixoft.com/blog/archives/30?n=collapse-all-xml-comments-in-vb-net-or-c#comment-309</link>
		<pubDate>Thu, 14 Jun 2012 11:58:36 +0000</pubDate>
		<guid>http://www.helixoft.com/blog/archives/30?n=collapse-all-xml-comments-in-vb-net-or-c#comment-309</guid>
					<description>This code is more helpful for me if it collapse all comments inside the property or Fucntion/Method
thanks and advance</description>
		<content:encoded><![CDATA[	<p>This code is more helpful for me if it collapse all comments inside the property or Fucntion/Method<br />
thanks and advance
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on How To Disable &#8220;A first chance exception of type&#8230;&#8221; Messages in VS 2005 by: Tony</title>
		<link>http://www.helixoft.com/blog/archives/24?n=how-to-disable-a-first-chance-exception-of-type-messages-in-vs-2005#comment-306</link>
		<pubDate>Fri, 18 May 2012 00:45:30 +0000</pubDate>
		<guid>http://www.helixoft.com/blog/archives/24?n=how-to-disable-a-first-chance-exception-of-type-messages-in-vs-2005#comment-306</guid>
					<description>Thanks for that.  You're right though, there are times when turning this off is most appricated; especially where you have to work with COM libraries that cause exceptions to be thrown.  If you want to know what exceptions are happening then just Break your code when any exception is thrown.  You can then filter down the range of exceptions on which to break as desired.</description>
		<content:encoded><![CDATA[	<p>Thanks for that.  You&#8217;re right though, there are times when turning this off is most appricated; especially where you have to work with COM libraries that cause exceptions to be thrown.  If you want to know what exceptions are happening then just Break your code when any exception is thrown.  You can then filter down the range of exceptions on which to break as desired.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on How To Show Full File Path (or Anything Else) in VS 2005 Title Bar by: Kevin Whitefoot</title>
		<link>http://www.helixoft.com/blog/archives/32?n=how-to-show-full-file-path-or-anything-else-in-vs-2005-title-bar#comment-303</link>
		<pubDate>Mon, 07 May 2012 08:04:17 +0000</pubDate>
		<guid>http://www.helixoft.com/blog/archives/32?n=how-to-show-full-file-path-or-anything-else-in-vs-2005-title-bar#comment-303</guid>
					<description>I made a couple of changes, the most important for me was to display the solution path as well.  In order to conserve space I also split the common substring of the solution and file paths to show that first:

...

                Dim sSolution = GotFocus.Document.DTE.Solution.FullName
                Dim sDocument = GotFocus.Document.FullName
                Dim iPrefixLen = CommonPrefixLength(sSolution, sDocument)
                Dim sPrefix = sSolution.Substring(0, iPrefixLen)
                ideTitle = sSolution.Substring(0, iPrefixLen) &amp;#38; &quot; - &quot; &amp;#38; sSolution.Substring(iPrefixLen) &amp;#38; &quot; - &quot; &amp;#38; sDocument.Substring(iPrefixLen)
          
...

    Private Function CommonPrefixLength(ByVal s1 As String, ByVal s2 As String) As Integer
        Dim iMax = Math.Min(s1.Length, s2.Length)
        For i = 0 To iMax - 1
            If s1(i)  s2(i) Then
                Return i
            End If
        Next
        Return iMax
    End Function</description>
		<content:encoded><![CDATA[	<p>I made a couple of changes, the most important for me was to display the solution path as well.  In order to conserve space I also split the common substring of the solution and file paths to show that first:</p>
	<p>&#8230;</p>
	<p>                Dim sSolution = GotFocus.Document.DTE.Solution.FullName<br />
                Dim sDocument = GotFocus.Document.FullName<br />
                Dim iPrefixLen = CommonPrefixLength(sSolution, sDocument)<br />
                Dim sPrefix = sSolution.Substring(0, iPrefixLen)<br />
                ideTitle = sSolution.Substring(0, iPrefixLen) &amp; &#8221; - &#8221; &amp; sSolution.Substring(iPrefixLen) &amp; &#8221; - &#8221; &amp; sDocument.Substring(iPrefixLen)</p>
	<p>&#8230;</p>
	<p>    Private Function CommonPrefixLength(ByVal s1 As String, ByVal s2 As String) As Integer<br />
        Dim iMax = Math.Min(s1.Length, s2.Length)<br />
        For i = 0 To iMax - 1<br />
            If s1(i)  s2(i) Then<br />
                Return i<br />
            End If<br />
        Next<br />
        Return iMax<br />
    End Function
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
