Created
December 31, 2021 22:24
-
-
Save sa-webb/d58cc4f8bdf117538be3624dce1b8d3e to your computer and use it in GitHub Desktop.
VS Code Python snippet for if __name__ == "main"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"if main": { | |
"prefix": "ifm", | |
"description": "creates if __main__", | |
"body": ["if __name__ == \"__main__\":", "\tprint($0)"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment