{
"Class": {
"prefix": "py-class",
"body": [
"class ${1:NewClass}:",
" \"\"\"${2:TODO: docstring}\"\"\"",
"",
" def __init__(self$3) -> None:",
" ${4:...}"
]
},
"For loop": {
"prefix": "py-for",
"body": [
"for ${2:item} in ${1:iterable}:",
" ${3:...}"
]
},
"Function": {
"prefix": "py-def",
"body": [
"def ${1:new_function}($2) -> ${3:None}:",
" \"\"\"${4:TODO: docstring}\"\"\"",
" ${5:...}"
]
},
"Main entry point": {
"prefix": "py-main",
"body": [
"if __name__ == '__main__':",
" ${1:...}",
""
]
},
"Try/except block": {
"prefix": "py-try",
"body": [
"try:",
" ${1:...}",
"except Exception as e:",
" print(f'{type(e).__name__}: {e}')"
]
},
"With statement": {
"prefix": "py-with",
"body": [
"with ${1:expr} as ${2:var}:",
" ${3:...}"
]
}
}
{
"colorize_brackets": true,
"inlay_hints": {
"enabled": true
},
"minimap": {
"show": "auto"
},
"show_signature_help_after_edits": true,
"soft_wrap": "editor_width",
"telemetry": {
"diagnostics": false,
"metrics": false
},
"agent": {
"sidebar_side": "right",
"dock": "right",
},
"collaboration_panel": {
"dock": "left"
},
"git_panel": {
"dock": "left"
},
"outline_panel": {
"dock": "left"
},
"project_panel": {
"dock": "left"
}
}