microsoft / microsoft/vscode-cpptools
Disable/Modify class/struct attribute indentation in VCFormat
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Type: Feature Request
As the title says, there's the ability to disable access modifier indentation, but no such capability for attributes following the access modifier. The consequence is that styles like Google's where the indentation of access modifiers is 1 and the indentation of attributes following them is 2, is not possible to emulate using the VCFormat.
Please add this feature as this is a basic one to have for a formatter. You could go fancy with it in the end, but for the start just make it possible to ignore the indentation of the struct members relative to the access modifiers and so make it relative to the struct/class braces instead.
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.
Direzione di ricerca
Inizia individuando la gestione di VCFormat dell'indentazione dei modificatori di accesso e degli attributi o membri di struct. Implementa l'opzione richiesta in modo che l'indentazione dei membri possa essere relativa alle parentesi graffe della classe o dello struct anziché al modificatore di accesso, quindi verifica che sia lo stile di indentazione abilitato sia quello disabilitato producano la formattazione prevista.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100