<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python. Unable to install a linter or formatter? 'No installers available'? Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/ Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites Otherwise **please** fill in the requested details below. "XXX" markers should not be present in the final bug report. --> ## Environment data - VS Code version: 1.21.1 - Extension version: 2018.2.1 - OS and version: windows 10 x64 - Python version (Anaconda): 3.5.1 - Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A ## Case The cursor is at (enter) position, and I press Enter: ``` if 1<=2: (enter) ``` ## Actual behavior It removes spaces before expressions and inserts spaces between less than and equal signs. Causes syntax errors ``` if1 < = 2: | ``` If you replace 1 with a variable, there is only the error of inserting spaces before the equal sign. ``` if num < = 2: | ``` ## Expected behavior ``` if 1 <= 2: | ```