'Prevent widget inspector from being launched in VSCode for flutter

How can I prevent widget inspector from launching each time in Visual Studio code. I have seen about 2 to 3 answere online, but either they are not applicable to the latest VSCode OR they are not clear. Please help



Solution 1:[1]

I found this on this thread and it worked for me.

open the settings.json file and add "dart.openDevTools": "never"

Solution 2:[2]

On VS Code you can go to:

settings > Extensions > Dart > DevTools > Dart:Open Dev Tools = never

That's it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Volhan Salai
Solution 2 Alex