Ask Your Question

Snippets - comments and @

asked 2020-07-03 15:28:32 -0500

iain1940 gravatar image

updated 2020-07-03 15:46:23 -0500

  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 ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-07-03 15:46:01 -0500

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!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-07-03 15:28:32 -0500

Seen: 267 times

Last updated: Jul 03 '20