[Geany] Using Snippets

Peter Anderson peter.anderson at xxxxx
Thu Jan 1 05:07:38 UTC 2009


Ross McKay wrote:
> G'day Peter,
>   
>> [...]
>> However, I am now having a problem getting snippets to work. I can find 
>> instructions for Linux and have tried the Windows equivalent (the 
>> snippets.conf file located in the C:\Documents and 
>> Settings\Peter\Application Data\Geany directory). Nothing happens, I 
>> don't know how to activate the snippets.
>>     
>
> Firstly, you need to tell Geany to reload its configuration for it to
> load your newly created snippets. This happens when you close and
> restart Geany, or you can select Tools -> Reload Configuration on the
> menu.
>
> Next, you need to press the TAB key after typing a snippet, and it
> should replace the snippet. 
>
> NB: You need your snippet to be defined for the filetype of your file -
> e.g. if you're editing a C++ file, you need your snippet in either the
> [C++] section or the [Default] section of the snippet.conf file.
>   
Ross,

Thanks for your quick reply. It works as you describe. How simple was that?

On Windows I have been using EditPlus (a damn fine editor, but Windows 
only). It uses a similar feature to snippets (clip libraries) and I have 
defined several clips that I find useful. If I convert these to Greany 
snippet format is there anywhere I can post them?

Thanks again,

Peter
-- 
*Peter Anderson*
There is nothing more difficult to take in hand, more perilous to 
conduct, or more uncertain in its success, than to take the lead in the 
introduction of a new order of things—Niccolo Machiavelli, /The Prince/, 
ch. 6



More information about the Users mailing list