How does Geany auto-completion wơrk?

懵懂的女人 提交于 2020-01-28 05:35:06

问题


This question might seem a bit odd but I searched for like an hour and didn't find any hit that actually answered my question(s) about the auto-complete features of geany:

  • does it have auto-complete
  • for which languages does it have auto-complete (plugins?)
  • how do i use auto-complete

回答1:


Geany does have autocomplete.

The main way autocomplete is used is by typing a long word, and by narrowing that list of autocomplete possibilities down. Let's say you type gtk_combo_box_. It will have a small list of different commands that match this description. Typing eTAB will narrow the search down to gtk_combo_box_entry_. Typing sENTER will then bring it to the proper to gtk_combo_entry_set_text_column. See the Geany manual.




回答2:


How about simply put: Ctrl+Space




回答3:


I know 4 years passed ... but the correct answer is :

Edit->Preferences->Editor->Completions->[Check the "Autocomplete all words in document"] press (CTRL+SPACE)




回答4:


Geany uses own internal engine and currently limited to:

  • C
  • Pascal
  • PHP
  • HTML
  • LaTeX
  • Python

It file format uses 3 types of encoding:

  • Tagmanager format
  • Pipe-separated format
  • CTags format

With CTAGS you can use external and powerful ctags utility that support a lot of langs.

Refer to official docs: http://www.geany.org/manual/current/#tags




回答5:


Geany surely have autocomplete and can offer a list of possible completions for symbols defined in the tags and for all words in a document.

The autocompletion list for symbols is presented when the first few characters of the symbol are typed or when the Complete word (Ctrl-Space) keybinding is pressed.

When the defined keybinding is typed and the Autocomplete all words in document preference is selected then the autocompletion list will show all matching words previously mentioned in the document, if there are no matching symbols.

Autocompletion also can be based on specific words like keywords and etc. For this you can check this link




回答6:


As the manual states:

Upon opening, files of supported filetypes are parsed to extract the symbol information (aka "workspace symbols"). You can also have Geany automatically load external files containing the symbol information (aka "global tags files") upon startup, or manually using Tools --> Load Tags File.

Global tags files are used to provide symbols for autocompletion and calltips without having to open the source files containing these symbols. This is intended for library APIs, as the tags file only has to be updated when you upgrade the library.

Some global tags files are distributed with Geany and will be loaded automatically when the corresponding filetype is first used. Currently this includes global tags files for these languages: C, Pascal, PHP, HTML, LaTeX, Python

For other languages, like Java, you have to download a tag file from here (if available), and load it upon startup or manually.



来源:https://stackoverflow.com/questions/7490915/how-does-geany-auto-completion-w%c6%a1rk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!