How to change the default template for new modules in Spyder IDE?
# -*- coding: utf-8 -*-
"""
Created on %(date)s
@author: X
"""
When you type in triple quotes after a function header, an icon will pop up that says Generate docstring . When this happens, hit Enter .
You can activate the object inspector to display the documention of the function itself by enabling automatic connections for your editor or console. It will then show you the function parameters as you press the left parenthesis. To enable it go to Tools > Preferences > Object Inspector .
Rich Text mode renders the object's docstrings with Sphinx , Plain Text mode displays the docstring without formatting while Show Source displays the docstring inline with the code for the selected object, or any Python portion of it (if the object is not pure Python).
Preferences > Editor > Advanced settings > Edit template for new modules
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With