How can I add a specific word to autocomplete?

How can I add specific words to the Pycharm that when I type these words in IDE, it will autocomplete?

3 comments
Comment actions Permalink

Hi,

Are you talking about words in string literals? What kind of words do you mean? Autocompletion does not work for words in string literals.

0
Comment actions Permalink

I create some alias and I need this alias in another file. For example in Sublime Text it works perfectly I think he just remembers this word.

from selenium.webdriver.remote.webdriver import WebDriver

setattr(WebDriver, 'accessibility_id', lambda self, accessibility_id: self.find_element_by_accessibility_id(accessibility_id))
0
Comment actions Permalink

>I create some alias and I need this alias in another file

Does it work in the same file? What type of alias did you create exactly? Yes, Sublime Text suggest any word it finds in a file, but I don't think there's a feature like that in PyCharm...

0

Please sign in to leave a comment.