Skip to content

Geany

Geany is a lightweight and convenient editor, which is relatively beginner-friendly in Linux environments.

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

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

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

Pros and Cons

Pros

  1. Lightweight;
  2. Can compile and run single files;
  3. Requires minimal configuration;
  4. Cross-platform.

Cons

  1. Not widely used;
  2. Has some permission issues on macOS Catalina2;
  3. New files do not have syntax highlighting by default; the file type must be switched manually.

Installation

Refer to Download | Geany

Usage Tips

Switching File Types

Switch under Document -> Set File Type.

For example, for the C++ language, click Document -> Set File Type -> Programming Languages -> C++ Source File, and you will see the file has been converted to C++ syntax highlighting.

Setting File Templates

Create a templates/files folder in the configuration directory. Files placed inside will become template files. After reopening Geany, you can find them under File -> New from Template.

The configuration directory can be found in 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/3

Common Issues

Compatibility with Deepin Terminal

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

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

Click the "Apply" button to save the changes.1

References and Notes