Geany

Geany is a lightweight and convenient editor that is relatively friendly to beginners in Linux environments.

Like Dev-C++, it can compile and run a single file.

However, it can run on Linux/Windows/macOS.

Its official website is: https://geany.org/

Advantages and disadvantages

Advantages

  1. Lightweight;
  2. Can compile and run a single file;
  3. Does not require much configuration;
  4. Cross-platform.

Disadvantages

  1. Not many people use it;
  2. It has some permission issues under macOS Catalina1;
  3. When creating a new file, syntax highlighting is not enabled by default, so you need to switch the file type manually.

Installation

See Download | Geany

Usage tips

Switching the file type

Switch it in Document -> Set Filetype.

For example, for the C++ language, click Document -> Set Filetype -> Programming Languages -> C++ source file to see that the file has been converted to C++ syntax highlighting.

Setting file templates

Create a templates/files folder under the configuration directory, and create files in it as template files. After reopening Geany, you can find them under File -> New (with Template).

The configuration directory can be found from the second and third lines of Help -> Debug Messages.

Here are the default template configuration directories for macOS and Linux:

  • System directory: /usr/share/geany/templates/files/
  • User directory: ~/.config/geany/templates/files/2

Frequently asked questions

Compatibility with Deepin Terminal

In Preferences -> Tools -> Virtual Terminal, change the terminal command to:

deepin-terminal -x "/bin/sh" %c

Click the "Apply" button.3

References and notes

Footnotes

  1. See: https://github.com/geany/geany/issues/2344 ↩

  2. Source: https://wiki.geany.org/config/templates ↩

  3. Source: Deepin Wiki https://wiki.deepin.org/ ↩

This content comes from OI Wiki: Geany. See the original for authors and revision history. AIOJ has adapted the formatting, in-site links, and resource paths.

Content is shared under CC BY-SA 4.0 and SATA license; additional terms are governed by the original notice. Thanks to the OI Wiki authors and contributors; per the SATA terms, please visit the OI Wiki repository and star it to show your support.