pycharm removes whitespaces?
已回答
Hi,
I've got dictionary in my code. For it to conform with pylint of the project, I need whitespaces after every element, like
dictionary = {
'key':value,[whitespace should be here]
'key':value,
}
The thing is, when I add those whitespaces and hit crtl-s, they disappear. I was looking through the settings, searching by "spaces" keyword, but I've found only highlighting option, nothing that would change or delete them for me.
Any ideas what this might be?
Thanks
Greg
I've got dictionary in my code. For it to conform with pylint of the project, I need whitespaces after every element, like
dictionary = {
'key':value,[whitespace should be here]
'key':value,
}
The thing is, when I add those whitespaces and hit crtl-s, they disappear. I was looking through the settings, searching by "spaces" keyword, but I've found only highlighting option, nothing that would change or delete them for me.
Any ideas what this might be?
Thanks
Greg
请先登录再写评论。
Hi, I don't think the above solution works anymore, as I cannot find Strip trailing spaces on save ('Other' section) -> None
Hi,
It is now under Settings/Preferences | Editor | General --> Other.
You can just search the settings: