Ask Your Question
1

How can i Automatically add comment code to new file?

asked 2018-07-08 21:35:00 -0500

1358506147 gravatar image

updated 2019-03-13 09:47:48 -0500

I want to do this, When I create a new file, a similar comment code has been added. like

#-*-coding:utf-8 -*-
#autor: xx
#time: xx
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2018-07-09 08:43:00 -0500

updated 2019-03-07 08:21:40 -0500

Wingware Admin gravatar image

Use the Snippets tool in Wing Pro.  There is already a 'file' snippet which you can edit to set up a different content than our defaults.  Then to use it, create a file, type 'file' so you get the "file (snippet)" item in the auto-completer and press Tab or another completion key (as set by the Editor > Auto-Completion > Completion Keys preferece).  The same technique (typing snippet name fragment and selecting it for the completer) can be used with any snippet.

Also, you can assign a key binding to the command 'snippet-file(snippet_name="file")' using the User Interface > Keyboard > Custom Key Bindings preference to be able to just bring up a new file with the file snippet already inserted.Details are at https://wingware.com/doc/edit/snippets

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

2 followers

Stats

Asked: 2018-07-08 21:35:00 -0500

Seen: 224 times

Last updated: Mar 07