Every time I create a form, I remove:
- The anti-pattern
from anvil import *
line
- The “# Set Form properties and Data Bindings.” comment
- The “# Any code you write here will run before the form opens.” comment
Every time I add an event handler, I remove the default comment.
Every time I create a module or a package, I remove the entire content.
Any chance I could not have to do this?
Perhaps an option for minimal default content or some way to define my own templates?
7 Likes
There’s a FR somewhere from me going back 4 years for that
I have a suspicion there might be one from me too!
It’s doing my head in. In the last three days, I’ve built 7 new apps for three different clients.
Form count is around 50.
Module or package count something like 25.
I’d really like not to have to do this any more.
1 Like
I’d even settle for a keyboard shortcut to remove some of them when I’m in the code editor. That might be easier to code
I agree with the FR, but…
75 form / modules in 30 hours??
Holy cow!!
That kind of productivity justifies a script to run on your local repository and replace all the precanned comments and imports
3 Likes
Can we have this thread hidden please? I don’t want my customers thinking that this level of productivity is possible, they might want me to do it!
6 Likes
It wasn’t a normal week, I promise! Just one that prompted this fr.
2 Likes