8000 'Format only on manual save' mode · Issue #112 · hashicorp/vscode-terraform · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
'Format only on manual save' mode #112
Closed
@bitfield

Description

@bitfield

I'm having a little trouble getting vscode-terraform to work the way I want. My point of comparison is vscode-go; with that extension, files are formatted every time you save them manually, but not on auto-save.

In Terraform, though, with editor.formatOnSave enabled, the file is reformatted on an auto-save. This is really disconcerting when you open a block prior to typing a line of code, pause to think about it, and suddenly the block you were in disappears.

Is there any combination of settings which will run the formatter only when I manually save the file, even if I have auto-save enabled? Or is this a feature of vscode-go which doesn't exist in vscode-terraform?

(I don't want to have to format the document manually, per the suggestion to #60. It's easy to forget to do that and check in a busted file. You can't do that if it's formatted on save.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0