mirror of
https://github.com/Microsoft/vscode
synced 2024-10-31 07:52:49 +00:00
2f581e8986
Automatic formatting inserts a space between the comment marker `#` and text in the Python extension, so without the allowance for whitespace then `"editor.formatOnType": true` breaks all region markers. Closes Microsoft/vscode-python#1073 and Microsoft/vscode-python#33
50 lines
1.7 KiB
JSON
50 lines
1.7 KiB
JSON
{
|
|
"comments": {
|
|
"lineComment": "#",
|
|
"blockComment": [ "\"\"\"", "\"\"\"" ]
|
|
},
|
|
"brackets": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"]
|
|
],
|
|
"autoClosingPairs": [
|
|
{ "open": "{", "close": "}" },
|
|
{ "open": "[", "close": "]" },
|
|
{ "open": "(", "close": ")" },
|
|
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
|
{ "open": "r\"", "close": "\"", "notIn": ["string", "comment"] },
|
|
{ "open": "R\"", "close": "\"", "notIn": ["string", "comment"] },
|
|
{ "open": "u\"", "close": "\"", "notIn": ["string", "comment"] },
|
|
{ "open": "U\"", "close": "\"", "notIn": ["string", "comment"] },
|
|
{ "open": "f\"", "close": "\"", "notIn": ["string", "comment"] },
|
|
{ "open": "F\"", "close": "\"", "notIn": ["string", "comment"] },
|
|
{ "open": "b\"", "close": "\"", "notIn": ["string", "comment"] },
|
|
{ "open": "B\"", "close": "\"", "notIn": ["string", "comment"] },
|
|
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
|
|
{ "open": "r'", "close": "'", "notIn": ["string", "comment"] },
|
|
{ "open": "R'", "close": "'", "notIn": ["string", "comment"] },
|
|
{ "open": "u'", "close": "'", "notIn": ["string", "comment"] },
|
|
{ "open": "U'", "close": "'", "notIn": ["string", "comment"] },
|
|
{ "open": "f'", "close": "'", "notIn": ["string", "comment"] },
|
|
{ "open": "F'", "close": "'", "notIn": ["string", "comment"] },
|
|
{ "open": "b'", "close": "'", "notIn": ["string", "comment"] },
|
|
{ "open": "B'", "close": "'", "notIn": ["string", "comment"] },
|
|
{ "open": "`", "close": "`", "notIn": ["string"] }
|
|
],
|
|
"surroundingPairs": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"],
|
|
["\"", "\""],
|
|
["'", "'"],
|
|
["`", "`"]
|
|
],
|
|
"folding": {
|
|
"offSide": true,
|
|
"markers": {
|
|
"start": "^\\s*#\\s*region\\b",
|
|
"end": "^\\s*#\\s*endregion\\b"
|
|
}
|
|
}
|
|
}
|