how do i change this csvode setting json so that each time i run a code chunk it does…
- User
how do i change this csvode setting json so that each time i run a code chunk it does not get formated: { "python.formatting.provider": "autopep8", "python.formatting.autopep8Args": [ "--max-line-length", "155" ], "editor.formatOnSave": true, "[python]": { "editor.tabSize": 4, "editor.insertSpaces": true, "editor.rulers": [ 75, 150 ], "editor.defaultFormatter": "ms-python.autopep8" } }
- Assistant
To prevent a code chunk from being formatted each time you run it, you can modify the JSON settings as follows:
{ "python.formatting.provider": "autopep8", "python.formatting.autopep8Args": [ "--max-line-length", "155" ], "editor.formatOnSave": true, "[python]": { "editor.tabSize": 4, "editor.insertSpaces": true, "editor.rulers": [ 75, 150 ], "editor.defaultFormatter": "ms-python.autopep8", "editor.formatOnType": false, // Add this line "editor.formatOnPaste": false // Add this line } }
By adding the "editor.formatOnType": false and "editor.formatOnPaste": false settings, you are disabling the formatting for typing and pasting actions in addition to the existing settings that enable formatting on save.