Re: [gedit-list] Add parameters with snippets



The solution for this problem is here:

${1:funcName}(${2:<parameters...>}); // Prototype

${1}(${2}) // Definition
{
    ${0}
}

This problem in C language is just an example. My true problem this isn't.
My true problem it's with SQL language. Here's the real problem and the solution.

-- ${1:<funcName>} --

CREATE OR REPLACE FUNCTION ${1}
(
    ${2:<parameters>}
)
RETURNS ${3:void}
LANGUAGE ${4:plpgsql}
${5:VOLATILE}
COST ${6:100}
AS $$

BEGIN
    ${0}
END;
$$;

COMMENT ON FUNCTION ${1}
(
    ${2}
   
) IS '${7:<comment>}';
-- ddl-end --

Thank You for your answer.

You can't, this is not what snippets were designed for.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]