Search code examples
modulesettingsspyderdocstring

How to change the default module docstring in Spyder?


How to change the default template for new modules in Spyder IDE?

# -*- coding: utf-8 -*-
"""
Created on %(date)s

@author: X
"""

Solution

  • Preferences > Editor > Advanced settings > Edit template for new modules

    changing default docstring for modules in Spyder