
Wrapping lets you set the Maximum comment width (default is 80). The Statements options control automatic rewriting of various statements into more Pythonic forms. Insert spaces within square brackets of lists Insert space within empty square brackets Insert space within empty tuple parentheses Insert space within parentheses of expression Insert space within argument list parentheses Insert space within empty argument list parentheses Insert space between a function call's name and argument list Insert space before and after return annotation operators Insert spaces around '=' in default parameter values

Insert space within empty parameter list parentheses Insert space within parameter list parentheses

Insert space between a function declaration's name and parameter list Insert space within empty bases list parentheses Insert space within bases list parentheses Insert space between a class declaration's name and bases list

You can set your formatting options through the menus Tools > Options > Text Editor > Python > Formatting and its nested tabs. Visual Studio lets you quickly reformat code to match pre-configured formatting options. Applies to: Visual Studio Visual Studio for Mac Visual Studio Code
