[英]organise visual studio vb.net sub-routines alphabetically
i am new to visual studio 2019. i have created a windows forms project and am using vb.net.我是 Visual Studio 2019 的新手。我创建了一个 Windows 窗体项目并且正在使用 vb.net。 however, i have noticed that every day when i add code to the project form controls, they are not organised in alphabetical order.然而,我注意到每天当我向项目表单控件添加代码时,它们并不是按字母顺序组织的。 it seems new subroutines are organised based on the day i added them.似乎新的子程序是根据我添加它们的那一天组织的。 See below example;见下面的例子;
Private Sub PtPhone_KeyPress(sender As Object, e As KeyPressEventArgs) Handles PtPhone.KeyPress
If (Not Char.IsControl(e.KeyChar) AndAlso (Not Char.IsDigit(e.KeyChar))) Then e.Handled = True
End Sub
Private Sub NOKPhone_KeyPress(sender As Object, e As KeyPressEventArgs) Handles NOKPhone.KeyPress
If (Not Char.IsControl(e.KeyChar) AndAlso (Not Char.IsDigit(e.KeyChar))) Then e.Handled = True
End Sub
Coming from Access VBA background, these routines are organised alphabetically such that NOKPhone_KeyPress comes before PtPhone_KeyPress in the VBA editor.来自 Access VBA 背景,这些例程按字母顺序组织,以便 NOKPhone_KeyPress 在 VBA 编辑器中位于 PtPhone_KeyPress 之前。 This makes it easy to look for and find a sub routine easily.这使得查找和查找子例程变得容易。 Is there a way i can force visual studio to also organise these sub routines alphabetically?有没有办法可以强制 Visual Studio 也按字母顺序组织这些子例程?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.