Skip to content

Options to control swift-format #1811

Open
@MahdiBM

Description

@MahdiBM

There should be some options to control swift-format that is bundled with the toolchains.
I'm not sure how this'll play with the fact that the formatter is called by sourcekit-lsp, not directly by the vscode extension. Perhaps @ahoppen can enlighten me.

Some possible options:

  • Option to completely disable swift-format.
  • Custom swift-format executable path.
  • Custom arguments to be passed to swift-format.
  • Custom paths to search for .swift-format.
  • Option to disable formatting on projects with certain conditions.
    • For example is there is no Package.swift or if there is no .swift-format file.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions