This question might seem a bit odd but I searched for like an hour and didn't find any hit that actually a开发者_JAVA百科nswered 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
How about simply put: Ctrl+Space
I know 4 years passed ... but the correct answer is :
Edit->Preferences->Editor->Completions->[Check the "Autocomplete all words in document"] press (CTRL+SPACE)
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.
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
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
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.
精彩评论