Search code examples
pythonpycharm

Does PyCharm have autocomplete file path?


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?


Solution

  • 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.