interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Enable nullable by default in C#

Open J05HM0N5TER opened this issue 2 years ago • 0 comments

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.

J05HM0N5TER avatar Feb 23 '24 10:02 J05HM0N5TER