I was thinking the other day that it would be nice to have something rather like the macro feature but different.
A way to manage code snippets would be really nice . This means that users could have a nice place to paste in or write commonly used chunks of code templates. I can then assign short-cut keys to the code I realize that macro recording could do this but it seems to me to be its own thing. If that makes sense.
What I am thinking of is a dialog box with a input text area and a series of controls to manage short-cut keys etc. This to me seemed a more usable way to insert code snippets.
I wonder what others think of this idea?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Have you seen the quicktext plugin? It's what you're looking for.
The one problem I have with it is that it only supports those languages that are inherently supported by Notepad++. In other words, if you have a User Defined language quick text won't work. But it does cover the 80-90% of languages used today.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was thinking the other day that it would be nice to have something rather like the macro feature but different.
A way to manage code snippets would be really nice . This means that users could have a nice place to paste in or write commonly used chunks of code templates. I can then assign short-cut keys to the code I realize that macro recording could do this but it seems to me to be its own thing. If that makes sense.
What I am thinking of is a dialog box with a input text area and a series of controls to manage short-cut keys etc. This to me seemed a more usable way to insert code snippets.
I wonder what others think of this idea?
Actually I think I've seen something similar in an editor called Taco on a mac.
[...runs off and does a search...]
Here we go...
http://tacosw.com/htmledit/support/codeclips.html
However, in Taco, I don't know that you can assign your own shortcut key to it. It looks like it just uses incremental numbering shortcuts.
Have you seen the quicktext plugin? It's what you're looking for.
The one problem I have with it is that it only supports those languages that are inherently supported by Notepad++. In other words, if you have a User Defined language quick text won't work. But it does cover the 80-90% of languages used today.
Hmm I just had a look at this and couldn't really figure out how to use this for the job described above. Perhaps I'm missing something?