Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does PyCharm have autocomplete file path?

Tags:

python

pycharm

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?

like image 325
Rmor91 Avatar asked Oct 14 '14 05:10

Rmor91


People also ask

Does PyCharm have autocomplete?

Machine-learning-assisted code completionPyCharm allows you to prioritize completion suggestions based on choices that other users made in similar situations.

How do I find the path of a file in PyCharm?

Invoke Find in Path ( Shift+Ctrl+F Win/Lin, Shift+Cmd+F on macOS) to bring up the Find in Path dialog.

How do I use autocomplete in Python?

(In Python Shell window, you can use TAB key besides the key combination of 'CTRL' and 'space' to invoke the built-in auto-completion feature.) Alternatively, you can choose the "Show Completions" in the main Edit menu to achieve the same as well.

How do I turn off autocomplete in PyCharm?

Go to File > Settings (or Ctrl + Alt + S ) > [IDE Settings] > Editor > Code Completion. The "Autopopup code completion" setting will determine if the popup opens automatically. Below it, the "Insert selected variant by typing dot, space, etc." is likely the setting you want to turn off.


1 Answers

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.

like image 156
Games Brainiac Avatar answered Sep 28 '22 15:09

Games Brainiac