This is a migrated thread and some comments may be shown as answers.

Ignore Windows Form Designer Generated Code

2 Answers 137 Views
JustCode for Visual Studio 2005/2008
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris C
Top achievements
Rank 2
Chris C asked on 27 Jan 2014, 10:47 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Zdravko
Telerik team
answered on 29 Jan 2014, 12:31 PM
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.
0
Chris C
Top achievements
Rank 2
answered on 30 Jan 2014, 01:10 PM
Thank you.
Tags
JustCode for Visual Studio 2005/2008
Asked by
Chris C
Top achievements
Rank 2
Answers by
Zdravko
Telerik team
Chris C
Top achievements
Rank 2
Share this question
or