cstrap / flask-snippets Goto Github PK
View Code? Open in Web Editor NEWFlask snippets for Visual Studio Code
Flask snippets for Visual Studio Code
Can you include a simple example on how to use the extension?
What shortcuts to use where?
Hey, I love your extenstion and use it very offen but i have one problem:
I cant change the prefix, its f and then the command but i would like to use j. as prefix
because by f another snippet extension for javascript always also displays their for command
All snippets work fine except for templates snippets. they are not working in Html files.
Currently the fsuper
template snippet inserts {{ self.supper() }}
instead of the expected {{ self.super() }}
.
Just a simple typo.
Hello,
I think there is an error in the prefix fapp.
Currently, it´s "Flask App": { "prefix": "fapp", "body": "from flask import Flask, render_template\napp = Flask(__name__)\n\n\[email protected]('${1:/}')\ndef ${2:index}():\n return render_template('${3:index}.html')\n\nif __name__ == '__main__':\n app.run(host:'${4:127.0.0.1}', port=${5:8000}, debug=${6:True})\n$0 $0" },
but I think it should be
"Flask App": { "prefix": "fapp", "body": "from flask import Flask, render_template\napp = Flask(__name__)\n\n\[email protected]('${1:/}')\ndef ${2:index}():\n return render_template('${3:index}.html')\n\nif __name__ == '__main__':\n app.run(host='${4:127.0.0.1}', port=${5:8000}, debug=${6:True})\n$0 $0" },
So the colon after host
in app.run
should be an equals sign.
Greetings,
Micha
Hi,
I got this broken ML docstring with flask-snippets 0.1.1
running on VS Code 1.36.1
:
\"\"\"sumary_line
Keyword arguments:
argument -- description
Return: return_description
\"\"\"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.