Collection of Pycharm IDE snippets to Flask framework
MIT License
Collection of Jetbrains PyCharm IDE templates to help you develop Flask web applications.
All PyCharm Flask
code snippets start with the f
letter.
Abbreviation | Description |
---|---|
""" | ML docstring |
"" | SL docstring |
fapp | Flask App |
froute | Flask route |
furl | URL generator |
fmeth | URL methods |
frt | Render template |
ftreq | Test request |
fup | Flask upload |
fsup | Secure upload |
frc | Read cookie |
fsc | Set cookie |
feh | Error handler |
flog | Flask logging |
fflash | Flash message |
fflashcateg | Flash message with category |
fflashfilter | Flash message with filter |
Abbreviation | Description |
---|---|
fexp | Flask Jinja2 expression tag |
ffilter | Flask Jinja2 filter tag |
fcomment | Flask Jinja2 comment tag |
fblock | Flask Jinja2 block |
fextends | Flask Jinja2 extends tag |
fself | Flask Jinja2 self tag |
fsuper | Flask Jinja2 super tag |
ffor | Flask Jinja2 for tag |
fif | Flask Jinja2 if block |
fife | Flask Jinja2 if-else block |
felif | Flask Jinja2 elif block |
fmacro | Flask Jinja2 macro tag |
ffb | Flask Jinja2 filter block |
fset | Flask Jinja2 set tag |
finclude | Flask Jinja2 include tag |
fimport | Flask Jinja2 import tag |
fautoescape | Flask Jinja2 autoescape tag |
furl | Flask Jinja2 url_for tag |
Download settings.jar
file: click here
Go to File | Import Settings...
in PyCharm IDE and select the downloaded settings.jar
file. Click OK
in the dialog that appears.
Restart PyCharmIDE
: Go to File | Invalidate Chaches / Restart...
menu, and click in Just Restart
button. The PyCharm IDE will be restart.
Enjoy with Flask templates!
If you'd like to contribute, please create a fork and open issue or pull requests! I am very open to newcomers, and will need all the help we can get to make the best flask snippets to PyCharm IDE.
To create new snippets, download and install the settings.jar
file. Go to File | Settings | Editor | Live Templates
, select Flask
and add your new snippets.
This project (Flask API snippets and Jinja2 snippets) is fully based on snippets created by jleonra.
Copyright (c) 2017 Michell Stuttgart