Home > database >  How to enable the pathlib.Path autocompletion in VSCode editor?
How to enable the pathlib.Path autocompletion in VSCode editor?

Time:08-05

I have noticed a beautiful new feature in the python interactive window when using pathlib.Path objects:

screenshot showing code cwd = Path.cwd() and autocompletion in the next line when typing cwd / ""

Intellisense actually shows the content of the directory when typing a slash behind a folder Path. This is awesome! I would like to take advantage of this feature in the file editor too. Is there a way to activate it, or is this only possible in the interactive window's context?

CodePudding user response:

This seems to be a requirement for new functions.There is no way to get prompt in.py file at present.I submitted it in enter image description here

  • Related