← All extensions

Flask Snippets

v0.0.2 · by Ayberk Gezer · added 3 November 2026

Flask snippets for Zed IDE.

Snippets

How to install

With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.

You can also open the Extensions panel in the app and search for Flask Snippets. The extension's id is flask-snippets.

Don't have Forge Super yet? Download it here.

README

From the extension's repository, written by its authors and not by Mentenaz. See the source.

Flask Snippets

Flask snippets for Zed IDE.

Installation

Method 1

  1. Go to Extensions menu in Zed IDE
  2. Search for "flask-snippets"
  3. Click "Install"

Method 2

  1. Clone this repo:
git clone https://github.com/ayberkgezer/flask-snippets
  1. Go to Extensions menu in Zed IDE
  2. Click "Install Dev Extension"
  3. Select the folder you cloned

Available Snippets

Application Setup

PrefixDescription
flask_hwBasic Flask hello world application
flask_appFlask application with template rendering

Routes & Endpoints

PrefixDescription
flask_routeBasic Flask route decorator
flask_routegpRoute with GET and POST methods
flask_routepRoute with POST method only
flask_control_routeRoute with template rendering
flask_urlURL generator using url_for
flask_fmethHTTP methods specification (GET, POST)

Templates & Jinja

PrefixDescription
flask_expJinja expression
flask_filterJinja filter expression
flask_commentJinja comment block
flask_blockJinja block statement
flask_extendsTemplate inheritance
flask_selfReference to self block
flask_superCall to parent block
flask_forJinja for loop
flask_ifJinja if statement
flask_ifeJinja if-else statement
flask_elifJinja if-elif-else statement
flask_macroJinja macro definition
flask_fbJinja filter block
flask_setJinja set statement
flask_includeInclude template
flask_importImport template as alias
flask_fromImport object from template
flask_autoescapeAutoescape block
flask_titleDefine title block
flask_varTemplate variable
flask_contentDefine content block
flask_rtRender template with variables

Request Handling

PrefixDescription
flask_treqTest request context
flask_rcRead cookie
flask_scSet cookie

File Upload

PrefixDescription
flask_upFile upload handler
flask_supSecure file upload handler

Error Handling

PrefixDescription
flask_ehError handler
flask_logFlask logging

Documentation

PrefixDescription
flask_mldocstringMulti-line docstring
flask_sldocstringSingle-line docstring