interactive
interactive copied to clipboard
Enable nullable by default in C#
Is your feature request related to a problem? Please describe.
Currently, I need to type #nullable enable at the start of every cell to enable the C# nullable context so that I can use nullable reference types.
Describe the solution you'd like
Having nullable enabled has been the default since .net 6, the default here I believe should follow suit.
Describe alternatives you've considered
An alternative that could be used is to introduce a setting to enable it by default so that I can set it as a preference.
Extra Info
Microsoft dev blog: Embracing nullable reference types
This is specifically to do with Visual Studio Code. I don't know whether this applies to other frontends or not.