Re: [gedit-list] Add parameters with snippets
- From: Matheus Saraiva <matheus saraiva gmail com>
- To: Jesse van den Kieboom <jessevdk gnome org>
- Cc: "gedit-list gnome org" <gedit-list gnome org>
- Subject: Re: [gedit-list] Add parameters with snippets
- Date: Thu, 30 Apr 2015 12:32:21 -0300
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]