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 | 3839 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3612 |
7 | Geothermal | 3569 |
8 | ecnerwala | 3494 |
9 | Um_nik | 3396 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 164 |
2 | Um_nik | 163 |
3 | atcoder_official | 158 |
3 | cry | 158 |
3 | -is-this-fft- | 158 |
6 | awoo | 156 |
7 | adamant | 154 |
7 | nor | 154 |
9 | TheScrasse | 153 |
10 | Dominater069 | 152 |
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).