microsoft / microsoft/vscode-cpptools
vcFormat: on-type formatting on Enter should not indent the next existing line
Aperta
@Colengms ci sta già lavorando.
Dal 14/7/2021.
bug
Feature: Code Formatting
Language Service
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Bug type: Language Service
Describe the bug
Version: 1.57.1 (user setup)
Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48
Date: 2021-06-17T13:28:07.755Z
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19042
C/C++ Extension Version: 1.5.1
Steps to reproduce
- Open
a.cppusing thesettings.json - Set cursor after
if (a < 10) - Press Enter
- See that before
returnwas inserted 4 spaces. - Try this in VS and see that VS does not insert spaces in that case.
a.cpp
void f(int a) {
if (a < 10)
return;
}
settings.json
{
"editor.formatOnType": true,
"C_Cpp.formatting": "vcFormat",
}
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.