forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-formattingfeature-requestRequest for new features or functionalityRequest for new features or functionality
Description
Environment data
Feature request: Mechanism to exclude file from autoformatting on save.
- VS Code version: 1.28.0-insider (user setup)
- Extension version (available under the Extensions sidebar): 2018.8.0
- OS and version: Windows 10 x64
- Python version (& distribution if applicable, e.g. Anaconda): PSF 3.6.4
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): none
- Relevant/affected Python packages and their versions: n/a
Actual behavior
Formatting always occurs on save.
Expected behavior
Some mechanism to exclude a file from autoformatting on save.
e.g. # "editor.formatOnSave": false at the top of the file to exclude.
Steps to reproduce:
- Set
"editor.formatOnSave": true - Save file with non-compliant formatting
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
n/a
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
n/a
Metadata
Metadata
Assignees
Labels
area-formattingfeature-requestRequest for new features or functionalityRequest for new features or functionality