Bug type: Language Service
Describe the bug
- OS and Version: NT 10.0.19042
- VS Code Version: 1.57.0
- C/C++ Extension Version: 1.5.0
Steps to reproduce
- Open b.cpp source file with settings.json
- Set cursor after task(){
- Press 'enter' - additional spaces would be inserted
- Call 'format document' - no result
Expected behavior
'format document' need to be worked
'Enter' must not create additional spaces
b.cpp
ll C_KOMB(ll n, ll k) { return fact(n) / (fact(k) * fact(n - k)); } // кол-во выборок без учета порядка, n - всего, k - сколько нужно взять в набор
ll A_KOMB(ll n, ll k) { return fact(n) / fact(n - k); } // Дополнительно добавляет фактор порядка, т.е. (1,2) и (2,1) - разные выборки.
void task(){
int a = 10;
}
settings.json
{
"editor.formatOnType": true,
"C_Cpp.formatting": "vcFormat",
"C_Cpp.vcFormat.newLine.beforeElse": false,
"editor.formatOnPaste": true
}
Bug type: Language Service
Describe the bug
Steps to reproduce
Expected behavior
'format document' need to be worked
'Enter' must not create additional spaces
b.cpp
settings.json