Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Suggets of improvements to Code Snippets plugin

(1/2) > >>

drev:
Hello,
There is some suggets to improve the code snippets plugin.

* See the snippet in a text field at the bottom of the treeCtrl (instead of opening a new window)
* Always save/load to/from a .xml file (currently, they are saved in a sytem dir)
* Import/export eclipse xml snippets

I can code that in some weeks, what do you think of that ?

Pecan:

--- Quote from: drev on March 05, 2008, 08:45:29 pm ---Hello,
There is some suggets to improve the code snippets plugin.

* See the snippet in a text field at the bottom of the treeCtrl (instead of opening a new window)

--- End quote ---

Personally, my snippets are too large for a text field in a small window. And I often have multiple snippets open at the same time.
I usually keep snippets in a snippet file (FileLink) and would rather see them in an editor with all the facilities of an edtior.

But you/re most welcome to change my opinion with a demo.


--- Quote from: drev on March 05, 2008, 08:45:29 pm ---* Always save/load to/from a .xml file (currently, they are saved in a sytem dir)

--- End quote ---

ummm, I don't understand. Snippets *are* loaded saved/from an .xml .


--- Quote from: drev on March 05, 2008, 08:45:29 pm ---* Import/export eclipse xml snippets

--- End quote ---

I don't have an opinion. I have no experience with Eclipse.


--- Quote from: drev on March 05, 2008, 08:45:29 pm ---I can code that in some weeks, what do you think of that ?

--- End quote ---

Good. A demo/prototype would be instructive.

MortenMacFly:

--- Quote from: drev on March 05, 2008, 08:45:29 pm ---* Import/export eclipse xml snippets

--- End quote ---
I wouldn't do that. It is not within the C::B focus to support each and every feature of other IDE's. Project importers are the only exception. If you want such funtionality it would be better to either write an(other) (own) plugin or a tiny (command line based) stand-alone converter. The latter should be *really* easy to implement.

drev:
Thanks for your answers,
It's a good idea to make a command line eclipse / snippet converter

The main problem for me with this snippet editor is :
When I use it on my USB key (or when i copy it to an another PC) the snippets are not copied too (it's like the appearance of codeblock) I don't know where they are saved... but i always must export/import

It would be better to always save snippets to an (relative path) xml file and automatically load it at the start-up of the editor.

mariocup:
Hi,

the codesnippets plugins save the configuration in your APPDATA directory. The content of the codesnippets browser is saved in codesnippets.xml and the settings in codesnippets.ini. In the codesnippets.ini file you can change the location of the loaded content


--- Code: ---SnippetFile= <your path>/codesnippets.xml

--- End code ---


You can also load a different snippets file via the context menu in the codesnippets browser within CodeBlocks.

Bye,

Mario

Navigation

[0] Message Index

[#] Next page

Go to full version