jed-users mailing list

[2017 Date Index] [2017 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[jed-users] jed snippets?


Are there any examples of snippets in the sl files?  

A snippet example in VS is

type#if
and a complete #if #endif block is created
Pressing a command to run the function after typing the snippet is fine.  I'm guessing something that will read the current line, and then search and replace with some cursor movement?

Also, snippets can have variables/parameters to help fill out blocks of code.  So is there a way to type in two places at the same time in JED?
a snippet like this
type foo() and press function-running key to activate "find and fill this snippet"

this appears
foo(int bar, int kludge) {    return bar + kludge;}
and if i edit "bar", it changes in both places.  same with "kludge".



[2017 date index] [2017 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]