You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Jupyter Notebook trim whitespaces not working in code cells #181905
changed the title [-]Jupyter Notebook trim whitespaces not working in code cells[/-][+]Bug: Jupyter Notebook trim whitespaces not working in code cells[/+]on May 9, 2023
Henrik Gerdes (@hegerdes) can you please check if you can reproduce with all extensions disabled and also check if there is modified editor.trimAutoWhitespace setting in user setting or workspace.
Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Peng Lyu (@rebornix) Thanks for your reply. I noticed that there was an update for VSCode formatting for notebooks, but it did not fix my issue. Thanks to your reply I also noticed that there are different trim settings: editor.trimAutoWhitespace and files.trimTrailingWhitespace. Both are set to true on my side. All extensions disabled.
What does not seem to work is the trimTrailingWhitespace part. Whitespaces on the end of the line and empty lines with whitespaces are not cleared. I created a short video for demonstration. See line 7,9 and 13.
Activity
[-]Jupyter Notebook trim whitespaces not working in code cells[/-][+]Bug: Jupyter Notebook trim whitespaces not working in code cells[/+]rebornix commentedon Jun 9, 2023
It seems I can't reproduce in latest VS Code
Screen.Recording.2023-06-09.at.11.37.10.AM.mov
Henrik Gerdes (@hegerdes) can you please check if you can reproduce with all extensions disabled and also check if there is modified
editor.trimAutoWhitespacesetting in user setting or workspace.vscodenpa commentedon Jun 9, 2023
Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!
hegerdes commentedon Jun 11, 2023
Peng Lyu (@rebornix) Thanks for your reply. I noticed that there was an update for VSCode formatting for notebooks, but it did not fix my issue. Thanks to your reply I also noticed that there are different trim settings:
editor.trimAutoWhitespaceandfiles.trimTrailingWhitespace. Both are set totrueon my side. All extensions disabled.What does not seem to work is the
trimTrailingWhitespacepart. Whitespaces on the end of the line and empty lines with whitespaces are not cleared. I created a short video for demonstration. See line 7,9 and 13.Unbenanntes.Video.mp4
I hope that helps differentiating the problem