Restrict Visual Studio 2019 to allow only latin characters in code

69 Views Asked by At

How can I restrict Visual Studio 2019 to allow only latin characters in identifiers? That means, I want method names and variable names to be in latin characters, and not for example in greek characters. The following code compiles in Visual Studio 2019:

Module Module1

    Private Sub MethodLatin()
        Console.WriteLine("MethodLatin")
    End Sub

    Private Sub ΜέθοδοςΕλληνική()
        Dim αβγ = "ΜέθοδοςΕλληνική"
        Console.WriteLine(αβγ)
    End Sub

    Sub Main()
        MethodLatin()
        ΜέθοδοςΕλληνική()
        Console.ReadKey()
    End Sub

End Module

I would like to forbid to write the second method (ΜέθοδοςΕλληνική) in greek characters. How can I do that?

0

There are 0 best solutions below