Python Snippets (py3snippets)
Overview
This VSCode extension provides useful Python code snippets to speed up development.
Features
- Quick and reusable Python code snippets for various tasks.
- Supports Python 3 syntax.
Snippets List
Trigger |
Snippet |
Description |
print |
print('$1') |
Print a message to the console |
for |
for $1 in $2: |
Basic for loop structure |
ifelse |
if $1:\n $2\nelse:\n $3 |
Basic if-else block |
How to Use
- Install the extension.
- Open a Python file in VSCode.
- Start typing the snippet prefix (e.g.,
print ) and select the snippet from the IntelliSense dropdown.
Contributing
Feel free to contribute by submitting pull requests or reporting issues.
License
MIT License
| |