"Reformat Code" breaks Shebang line

1. Create new python file.
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
prettyPrint();

2. execute "Reformat Code".

# !/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
prettyPrint();

Shebang Line (Line #1) is broken.


I hope, No reformat a shebang line.

Preference  Code Style > Python > Spaces tab > Other > After '#'
is checked.

The Turning it off here , I don't not want it to in violation of the PEP8.
2 comments
Comment actions Permalink
I just checked with pycharm 3.4.1 and reformatting code won't change the shebang line here.
0
Comment actions Permalink
I updated 3.4.1. Resolved.
Thank you.
0

Please sign in to leave a comment.