c# - How to disable the warning of Unnecessary Using of Directive in vscode? -


i using vs code develop game unity.

every time open editor, there 99+ unnecessary using of directive makes me unhappy. since there lots of dependency of 3rd party plugins, i'am not sure weather can remove them. want have method disable them.

i tried like:

"csharp.lint.unnecessaryusingdirective": "ignore" 

but obviously, doesn't work. wish there can hide or disable warning.

i think issue has been addressed in latest version of omnisharp — because forced use legacy c# extension unity, solution remains unclear.

we should able add omnisharp.json file in our project root:

{     "ignoredcodeissues": [         "^unnecessary using directive.$"     ] } 

but presently, throws error:

system.formatexception: unsupported json token 'startarray' found. path 'ignoredcodeissues', line 2 position 27. 

i have opened new issue legacy c# extension, in hopes gets feedback omnisharp-vscode team.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -