Hello,
I started to use geany as a text editor. I've setup everything except the snippet. In sublime text, when you type in a certain trigger, a prewritten code is included. Is there anything similar in geany ?
Edit : I use mac 2020 m1 chip
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | dXqwq | 3436 |
| 8 | Radewoosh | 3415 |
| 9 | Otomachi_Una | 3413 |
| 10 | Um_nik | 3376 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | adamant | 152 |
| 3 | Proof_by_QED | 146 |
| 3 | Um_nik | 146 |
| 5 | Dominater069 | 144 |
| 6 | errorgorn | 141 |
| 7 | cry | 139 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 9 | TheScrasse | 134 |
Hello,
I started to use geany as a text editor. I've setup everything except the snippet. In sublime text, when you type in a certain trigger, a prewritten code is included. Is there anything similar in geany ?
Edit : I use mac 2020 m1 chip
| Название |
|---|



Yes,you can search for how to use it.
Didn't find anything online that works in a mac
Not as lightweight tho.
Don't like to use IDEs
its not that deep, relax
interesting, is it similur to vim? cause i use vim
No it's a little different
Link This is what I got at max when i was trying to configure it myself. then I just stored all my snippets in a .cpp file and i copy them when in need.
I tried what was there in the link. It doesn't work
Go to tools > Configuration files > snippets.conf
Add new snippet, and use it with tab
Doesn't work
see it
write a script thats how I use it at least.
How to do that ?
.
1.copy paste your code here and copy the output without the quotes
2.type sudo gedit /usr/share/geany/snippets.conf (or you can go to snippets.conf from the tools menu in geany)
3.under the language section which you want to change
4.aliasname=paste the op which you have copied and save it
5.open geany ,in tools -> reload configuration
6.you are done just type aliasname and then press tab, your snippet is pasted.
Like in the above case under c++ section in that conf file ,i would do as customhash=the op you copied
Auto comment: topic has been updated by majju (previous revision, new revision, compare).