First time here? Check out the FAQ!
1

Snippets - comments and @

  1. I've just (re-)started using Wing snippets and I wondered whether it was possible to add a comment (not to be passed on) in the snippet file to provide extra information if a snippet was edited so time later.

  2. I don't understand the working of the '@' prefix. Is there an example snippet that uses it ?

iain1940's avatar
66
iain1940
asked 2020-07-03 15:28:32 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2020-07-03 15:46:23 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

There isn't a comment syntax for snippets. It looks like @ is used in the 'def' snippet for 'module' context for Python. I think it would only make sense if you set up a variable that is filled from an environment variable. Then it causes the value that is auto-entered to wrap, as you'ld want for a docstring. Some of the snippet syntax predates implementation of filling in the values inline, and @ was probably more relevant before that change, a very long time ago now!

Wingware Support's avatar
4k
Wingware Support
answered 2020-07-03 15:46:01 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer