Home > front end >  How to enable specific VScode notification?
How to enable specific VScode notification?

Time:04-28

When I use Shift Alt F to format a python file, VScode gives me a notification at bottom-right corner:

Formatter autopep8 is not installed? Install?

Yes|Use black|Use yapf|Do not disturb

I am not sure if the last choice is Do not disturb or some other things.

However I clicked it by accident. Now this notification will not be shown no matter what I do.

How can I make it back?

CodePudding user response:

You could use code "pip show autopep8" to check whether autopep8 has been installed because you're not sure which option you clicked.

1. You have chosen the first three options

If you have installed the autopep8 and you are sure that you want to see this notification again, you can "pip uninstall autopep8" and repeat the previous formatting operation.

Black and yapf do the same.

2.You have chosen the last one

After repeated tests and queries, when you select "do not disturb" (for which I uninstall autopep8), there is no new line in setting.json. I queried various keywords in setting and didn't find the content related to this reminder. The setting of this report should exist in the database file of vscode. enter image description here

enter image description here

enter image description here

Change the "FORMATTER_NOT_INSTALLED_KEY":true into "false".

So, the best way to solve this question is to download autopep8 by using "pip install autopep8"

  • Related