Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>py-snippetsNew to Visual Studio Code? Get it now.
py-snippets

py-snippets

Rahul George

|
64,675 installs
| (3) | Free
This extension provides you with common python code snippets to make your coding faster. This imports all the code snippets provided by IntelliJ PyCharm to VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

py-snippets README

An extension to add Python code snippets to auto complete certain code sections.

Listed below are ways to use the auto complete feature.

Features

Code snippets for the following actions:

* for loop with a list
* if __name__ == "__main__": block
* for-else
* if-else 
* elif block

Requirements

Needs the Python extension

Extension Settings

Include if your extension adds any VS Code settings through the contributes.configuration extension point.

For example:

This extension contributes the following settings:

  • myExtension.enable: enable/disable this extension
  • myExtension.thing: set to blah to do something

Known Issues

No known issues

Release Notes

[1.0.1] - 2020-10-08

Addded

  • Correct repo details to the package.json file
  • Added snippet for for-else for a list
  • Added snippet for if/else
  • Added snippet for elif block
  • Code snippet for if main block

[1.0.0] - 2020-10-04

Addded

  • For loop added to code snippets
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft