Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

.editorconfig formatting option to start new lines with commas + space rather than ending lines with comma

Offen
#171 0 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
38/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
sql
Bereich
databases, tooling

Rechercherichtung

Beginne damit zu prüfen, wie .editorconfig-Optionen dargestellt werden und wie der Formatter SELECT-Klauseln, IN-Listen und ObjektdDefinitionen behandelt. Die Arbeit ist abgeschlossen, wenn eine Opt-in-Einstellung für diese Listen führende Kommas mit einem Leerzeichen erzeugt und dabei das bestehende Verhalten für Funktionsargumente beibehält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

formatting

I was redirected here to create this issue from: https://github.com/madskristensen/SqlFormatter/issues/24

Original request

Is your feature request related to a problem? Please describe.
My team standardizes on commas being placed at the beginning of a line rather than at the end of the line. This would be for lists specfically, not necessarily function arguments. For example: the SELECT clause primarily, but also includes IN lists, object definitions (parameter lists, column lists, etc.)) This formatter doesn't appear to support this code standard. I'd love for our team to use a formatter to follow our code standards such as this one.

Describe the solution you'd like
I would like an opt-in option for the .editorconfig to allow for this format:

SELECT 
    u.Id
    , u.Name
    , u.Email
FROM Users u

I think the formatter also places the first column on the same line as the SELECT and uses AS for aliasing, but that's a compromise my team can live with.

Describe alternatives you've considered
It seems like we would have to build our own Visual Studio extension?

Additional context
This online formatter provides this option. https://www.dpriver.com/pp/sqlformat.htm

Image
Vorherrschende Sprache
GAP
Sterne
278
Forks
46
Ø Merge
9 T. 23 Std.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoft/SqlScriptDOM

Alle Issues in microsoft/SqlScriptDOM

Ähnliche Issues

Weitere Issues zu Databases

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.