From a291da4049b295b57b009faf3434f2441e08c091 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Thu, 20 Apr 2017 15:21:42 -0700 Subject: [PATCH] Disable Autoclosing Pairs for Quotes in c++ strings and comments (#25100) Fixes #25025 --- extensions/cpp/language-configuration.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/cpp/language-configuration.json b/extensions/cpp/language-configuration.json index 2c89643f396..86530b6007d 100644 --- a/extensions/cpp/language-configuration.json +++ b/extensions/cpp/language-configuration.json @@ -9,11 +9,11 @@ ["(", ")"] ], "autoClosingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] + { "open": "[", "close": "]" }, + { "open": "{", "close": "}" }, + { "open": "(", "close": ")" }, + { "open": "'", "close": "'", "notIn": ["string", "comment"] }, + { "open": "\"", "close": "\"", "notIn": ["string"] } ], "surroundingPairs": [ ["{", "}"],