{"id":18312450,"url":"https://github.com/un4gt/pycharm-like-snippets","last_synced_at":"2026-02-11T21:02:55.468Z","repository":{"id":243382535,"uuid":"812236055","full_name":"un4gt/pycharm-like-snippets","owner":"un4gt","description":"get snippets in vs_code like pycharm","archived":false,"fork":false,"pushed_at":"2025-01-02T16:08:04.000Z","size":112,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T18:44:41.953Z","etag":null,"topics":["python","python-snippets","vscode","vscode-extension","vscode-snippet","vscode-snippets-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=tumuerzunong.pycharm-like-snippets\u0026ssr=false#overview","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/un4gt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-08T10:17:35.000Z","updated_at":"2025-01-02T16:11:30.000Z","dependencies_parsed_at":"2024-06-08T13:58:53.575Z","dependency_job_id":"c0715dcf-e104-4827-90b7-c1ddb3e8b4e0","html_url":"https://github.com/un4gt/pycharm-like-snippets","commit_stats":null,"previous_names":["jennier0107/pycharm-like-snippets","un4gt/pycharm-like-snippets"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/un4gt/pycharm-like-snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un4gt%2Fpycharm-like-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un4gt%2Fpycharm-like-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un4gt%2Fpycharm-like-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un4gt%2Fpycharm-like-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/un4gt","download_url":"https://codeload.github.com/un4gt/pycharm-like-snippets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un4gt%2Fpycharm-like-snippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29345418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T20:11:40.865Z","status":"ssl_error","status_checked_at":"2026-02-11T20:10:41.637Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","python-snippets","vscode","vscode-extension","vscode-snippet","vscode-snippets-extension"],"created_at":"2024-11-05T16:24:12.006Z","updated_at":"2026-02-11T21:02:55.389Z","avatar_url":"https://github.com/un4gt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pycharm-like-snippets\n\n[![Visual Studio Marketplace Release Date](https://img.shields.io/visual-studio-marketplace/release-date/tumuerzunong.pycharm-like-snippets)](https://marketplace.visualstudio.com/items?itemName=tumuerzunong.pycharm-like-snippets)\n[![GitHub License](https://img.shields.io/github/license/un4gt/pycharm-like-snippets)](https://github.com/un4gt/pycharm-like-snippets/blob/main/LICENSE)\n[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/tumuerzunong.pycharm-like-snippets)](https://marketplace.visualstudio.com/items?itemName=tumuerzunong.pycharm-like-snippets)\n[![Visual Studio Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/tumuerzunong.pycharm-like-snippets)](https://marketplace.visualstudio.com/items?itemName=tumuerzunong.pycharm-like-snippets)\n[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/tumuerzunong.pycharm-like-snippets)](https://marketplace.visualstudio.com/items?itemName=tumuerzunong.pycharm-like-snippets)\n[![Visual Studio Marketplace Last Updated](https://img.shields.io/visual-studio-marketplace/last-updated/tumuerzunong.pycharm-like-snippets)](https://marketplace.visualstudio.com/items?itemName=tumuerzunong.pycharm-like-snippets)\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/un4gt/pycharm-like-snippets/.github%2Fworkflows%2Frelease.yaml)](https://github.com/un4gt/pycharm-like-snippets/actions/workflows/release.yaml)\n\nGet snippets in vs_code like pycharm !\n\nNow support these sinppets:\n\n|No.|prefix|description|\n|:-----:|:------:|:-------:|\n|1|main|main script entry point|\n|2|compd|Dict comprehension|\n|3|compdi|Dict comprehension with `if`|\n|4|compg|Generator comprehension|\n|5|compgi|Generator comprehension with `if`|\n|6|compl|List comprehension|\n|7|compli|List comprehension with `if`|\n|8|comps|Set comprehension|\n|9|compsi|Set comprehension with `if`|\n|10|fori|Iterate (for ... in ...)|\n|11|fore|Iterate (for ... in enumerate)|\n|12|prop|Property getter|\n|13|props|Property getter/setter|\n|14|propsd|Property getter/setter/deleter|\n|15|deff|python functions|\n|16|adef|python async functions|\n|17|klass|python class without inheritance|\n|18|klassi|python class with inheritance|\n|19|forr|python for x in range(y)|\n|20|afor|python async for in aiterables|\n|21|openw|python open file by with statement|\n|22|trye|python try except statement|\n|23|tryf|python try except finally statement|\n|24|tryl|python try except else statement|\n|25|whl|python while loop statement|\n|26|wth|python with statement|\n|27|witha|python with...as statement|\n|28|awith|python async with statement|\n|29|im|python import expression|\n|30|ims|python import ... as expression|\n|31|fim|python from ... import expression|\n|32|fims|python from ... import expression as|\n\n## Added in v0.0.2\n\nAdd the **wrap expression with print** feature, which can be used through keybindings.\n\n\u003e In `VS Code`, we can not use `code snippets` to implement a feature similar to PyCharm's `.print`, we must rely on relevant commands to achieve similar functionality, and the shortcut key has been changed to `Alt + P`.\n\nPlease keep the cursor at the end of the current line.\n\n```python\nif __name__ == \"__main__\":\n    import sys\n    fib(int(sys.argv[1]))\n```\n\nafter type `Alt + P` end of the current line\n\n```python\nif __name__ == \"__main__\":\n    import sys\n    print(fib(int(sys.argv[1])))\n```\n\n## Added in v0.0.4\n\n### `deff`\n\npython functions\n\n```python\ndef func_name(func_args):\n    ...\n```\n\n### `klass`\n\npython class without inheritance\n\n```python\nclass class_name:\n    \n    ...\n```\n\n### `klassi`\n\npython class with inheritance\n\n```python\nclass class_name(super_class):\n\n    ...\n```\n\n## Added in v0.0.5\n\npython async functions\n\n### `adef`\n\n```python\nasync def func_name(func_args):\n    ...\n```\n\n## Added v0.0.6\n\n### `forr`\n\npython for x in range(y)\n\n```python\nfor var in range(end):\n    pass\n```\n\n### `afor`\n\npython async for in aiterables\n\n```python\nasync for var in aiterables:\n    pass\n```\n\n### `openw`\n\npython open file by with statement\n\n```python\nwith open(fpath, mode=\"r\", encoding=\"utf-8\") as handler:\n    pass\n```\n\n## Added v0.0.7\n\n### `trye`\n\npython try except statement\n\n```python\ntry:\n    pass\nexcept Exception:\n    pass\n```\n\n### `tryf`\n\npython try except finally statement\n\n```python\ntry:\n    pass\nexcept Exception:\n    pass\nfinally:\n    pass\n```\n\n### `tryl`\n\npython try except else statement\n\n```python\ntry:\n    pass\nexcept Exception:\n    pass\nelse:\n    pass\n```\n\n### `whl`\n\npython while loop statement\n\n```python\nwhile xx:\n    pass\n```\n\n## Added v0.0.8\n\n### `wth`\n\npython with statement\n\n```python\nwith xxx:\n    pass\n```\n\n### `witha`\n\npython with...as statement\n\n```python\nwith xxx as xx:\n    pass\n```\n\n### `awith`\n\npython async with statement\n\n```python\nasync with xxx:\n    pass\n```\n\n## Modified v0.0.8\n\n- `iter` to `fori`\n- `itere` to `fore`\n\n## Added v0.1.0\n\n### `im`\n\npython import expression\n\n```python\nimport module\n```\n\n### `ims`\n\npython import ... as expression\n\n```python\nimport moudle as alias\n```\n\n### `fim`\n\npython from ... import expression\n\n```python\nfrom module import xxx\n```\n\n### `fims`\n\npython from ... import as expression\n\n```python\nfrom module import xxx as alias\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fun4gt%2Fpycharm-like-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fun4gt%2Fpycharm-like-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fun4gt%2Fpycharm-like-snippets/lists"}