Does PyCharm have autocomplete file path?

2019-03-25 13:48发布

In the IDLE that comes with Python if I were to type :

a='c:\

A list with the file contents of the directory is displayed for suggestion. With Pycharm if I enter :

a='c:\

No list of the contents inside the directory is displayed. If I press 'control + space', PyCharm's auto-complete suggestions are a list of functions and variables inside my code. Does PyCharm have the capabilities to auto-complete file path suggestions within code?

1条回答
家丑人穷心不美
2楼-- · 2019-03-25 14:25

Yes it does, but you need to inject language in order to do so. Let me demonstrate:

http://youtu.be/4dh_yzgfXxE

I had to use video, since I think that’s the clearest way to explain how this works.

查看更多
登录 后发表回答