'Vscode keeps moving my commented lines on save

Everytime I save my python project, it keeps moving my comments away from my flask routes by two lines.

I disabled prettier I disabled intelisense I also restarted vscode

But the issue still remains: enter image description here

enter image description here



Solution 1:[1]

  1. ctrl+p and type "setting.json".
  2. Find the line named "editor.formatOnSave", change "true" to "false"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MingJie-MSFT