mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
![Brett Cannon](/assets/img/avatar_default.png)
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
51 lines
1.7 KiB
JSON
51 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"
|
|
}
|
|
}
|
|
}
|