How can I prevent the private
access modifier from being added in VS Code for C# when generating members?
E.g. I have the error:
The name 'foo' does not exist in the current context [Assembly-CSharp]csharp(CS0103)
I focus the caret at the foo();
with the help of the cursor, press Ctrl+.
and select the
Generate method 'MyClass.foo'
Here is the method which gets generated:
private void foo()
{
throw new NotImplementedException();
}
As you can see I am getting the private
modifier being added.
Here is what I want to be generated instead of the one I showed above:
void foo()
{
throw new NotImplementedException();
}
I tried searching for the private
, accessibility
settings in VS Code but found nothing. Given that VS Code is quite configurable, I am expecting to be able to set up this config as well. If you know how to do that, could you share it with me, please?