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 | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
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).