/Community

A Support Community for SubMain Products
in Search
Welcome to SubMain Community Sign in | Join | Help

Comments Being Excluded

Last post 05-29-2008, 11:54 PM by Serge B.. 3 replies.
Sort Posts: Previous Next
  •  05-13-2008, 8:02 AM 537

    Comments Being Excluded

    Hello,

     I have recently started using PCP in conjunction with Visual Basic.NET 2005.  I have been in the habit of placing my comments for a method just below the method call and before my first Dim.  Here is an example of a method:

    ----------------------- Code -----------------------
    Public Sub mySub()

    'My comments normally go here...

    Dim myVariable As String

    Code would go here

    End Sub
    ----------------------- Code -----------------------

    When I print the code using PCP my comments above my first Dim get removed, and the Dim moved all the way up to just below the Public Sub.  Is there a way to stop this from happening?

     Thank you for your time,
    Jeremy Collins

  •  05-13-2008, 11:04 PM 538 in reply to 537

    Re: Comments Being Excluded

    Hi Jeremy,

    No, not with the current version. PrettyCode.Print will remove leading and trailing comments. If there was a logical reason for this back when this was implemented, I don't remember it.


    Thank you,
    Serge Baranovsky
    http://submain.com - .NET Developer Tools  |  Microsoft VB MVP  |  http://vbcity.com - VB Developer Community
    » » (Static Code Analysis + Automatic Refactoring) / Painless Coding Guidelines = CodeIt.Right - http://submain.com/codeit.right
    » » C#/VB .NET Coding Guidelines - FREE 100+ page ebook (PDF) http://submain.com/guidelines
  •  05-29-2008, 7:10 AM 543 in reply to 538

    Re: Comments Being Excluded

    Thanks for the reply Serge.  Is there any chance this will be changed in the future?  I know it sounds silly but this would be a real deal breaker for us.  We have probably 50+ programs written with that style of commenting.  If we can't use PCP with these past programs then we will not be able to use PCP at all.

     Jeremy

  •  05-29-2008, 11:54 PM 544 in reply to 543

    Re: Comments Being Excluded

    Hi Jeremy,

    I have added this to the upcoming version list. We will get this done. Although I can't promise the update earlier than mid to late summer.

    I hope this works for you.


    Thank you,
    Serge Baranovsky
    http://submain.com - .NET Developer Tools  |  Microsoft VB MVP  |  http://vbcity.com - VB Developer Community
    » » (Static Code Analysis + Automatic Refactoring) / Painless Coding Guidelines = CodeIt.Right - http://submain.com/codeit.right
    » » C#/VB .NET Coding Guidelines - FREE 100+ page ebook (PDF) http://submain.com/guidelines
View as RSS news feed in XML