Is it possible to add a function to automatically add headers?
I want to automatically update the header information when saving, and the format can be defined by myself, like psioniq File Header plugin in vscode, as shown below:
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
######################################################################
########################### yang's header ############################
######################################################################
# File: xxxx.py #
# Create Data: 2026/01/04 11:41:47 #
# Author: xxxxxxxxx #
# Email: xxxxxxxxx@xxxxxxx.com #
# Last Modified: 2026/04/14 14:49:08 #
# Modified By: xxxxxxxxx #
# Copyright (c) 2025 xxxxxxxxxxxxx Culture Media Co., Ltd #
######################################################################
I wrote a plugin myself, but it has some bugs, the performance doesn't feel high, and there's no way to customize the format in the presets. To change the format, I have to modify the code. I wonder if the official team could add a similar feature, and also allow customization of formats within the presets.

Comments