Skip to main content

3 posts tagged with "vscode"

View All Tags

How to Make Doctests Easy in Python with Gitpod and VS Code

· 4 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

If you're writing doctests in Python using Gitpod or VS Code, you don’t need much to get started. Python’s built-in doctest module lets you write examples in your function’s docstring using the familiar >>> prompt, and then run those examples as tests. This is great for small, focused functions or when you want your documentation to double as lightweight tests.

How to Easily Write Docstrings in Python Without a Headache (Using VSCode)

· 2 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Writing docstrings in Python can feel like a chore — especially with the odd formatting involving triple quotes, >>> signs, and parameter blocks. But clear, standardized docstrings are critical for both readability and maintainability.

If you’re using VSCode (Visual Studio Code), you’re in luck. With a few extensions and configurations, you can make writing professional, PEP 257-compliant docstrings painless.