microsoft / microsoft/vscode-cpptools

vcFormat: on-type formatting on Enter should not indent the next existing line

Aperta
#7,815 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@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

  1. Open a.cpp using the settings.json
  2. Set cursor after if (a < 10)
  3. Press Enter
  4. See that before return was inserted 4 spaces.
  5. 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.