Ignore Windows Form Designer Generated Code

3 posts, 1 answers
  1. Chris C
    Chris C avatar
    2 posts
    Member since:
    Jan 2014

    Posted 27 Jan 2014 Link to this post

    Hello,

    I have a VB.NET Visual Studio 2008 project that has some older style Windows Forms where the auto generated designer code is in the same file as the developer's code.  Is there a way to tell JustCode to ignore the code in the generated code region?  An example of the region is at the end of this message.  Thank you.

        - Chris C


    #Region " Windows Form Designer generated code "  <-- Can JustCode ignore code in this region?

      Public Sub New()
                MyBase.New()

                'This call is required by the Windows Form Designer.
                InitializeComponent()

                'Add any initialization after the InitializeComponent() call

            End Sub

            'Form overrides dispose to clean up the component list.
            Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
                If disposing Then
                    If Not (components Is Nothing) Then
                        components.Dispose()
                    End If
                End If
                MyBase.Dispose(disposing)
            End Sub

            'Required by the Windows Form Designer
            Private components As System.ComponentModel.IContainer

            'NOTE: The following procedure is required by the Windows Form Designer
            'It can be modified using the Windows Form Designer.  
            'Do not modify it using the code editor.
            <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        
            .....
       
            End Sub
        
    #EndRegion
  2. Answer
    Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 29 Jan 2014 Link to this post

    Hi Christopher,

    Thanks for contacting us.
    I am afraid this is not possible yet, but you can ignore whole files or folders using the "Exclude file filter" if that will help.

    Regards,
    Zdravko
    Telerik
    Share what you think about the Just products with us, so we can be even better! You can use our forums, or our JustTrace, JustMock, JustCode and JustDecompile portals.
  3. DevCraft banner
  4. Chris C
    Chris C avatar
    2 posts
    Member since:
    Jan 2014

    Posted 30 Jan 2014 Link to this post

    Thank you.
Back to Top