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
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 160 |
4 | adamant | 160 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
8 | Dominater069 | 154 |
8 | nor | 154 |
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
Name |
---|
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
ide's are kinda hard. if u have an old comp, vim/geany/emacs is better. + those are very easly customizable so it will fit ur prefrence
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 ?
.
This is the code in the script. template.cpp is my template file
!/bin/bash
file_name=$1
cat template.cpp > "$file_name" # Copy template to new file
geany "$file_name"
I run the following command when I want to open a new file. ./cr.sh A.cpp A.cpp can be anything
Idk why the above code looks weird!!
use ideone instead
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).