Skip to content

onSave Not working #34

@nbordeau

Description

@nbordeau

PHP_CodeSniffer version 3.4.2
VS Code version 1.36.1

I can format the document by using Shift+Alt+F but the onSave setting is not formatting the document.

Turned on debugging and nothing is showing in the debug console. Here are my settings:

{
  "php.suggest.basic": false,
  "php.validate.enable": false,
  "php.executablePath": "C:\\wamp64\\bin\\php\\php7.0.33\\php.exe",
  "phpcs.standard": "WordPress",
  "phpcbf.standard": "WordPress",
  "phpcbf.onsave": true,
  "phpcbf.documentFormattingProvider": true,
  "phpcs.autoConfigSearch": false,
  "phpcbf.debug": true,
  "[php]": {
    "editor.formatOnSave": true
  },
  "phpcbf.executablePath": "phpcbf.bat"
}

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions