-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to disable Word Wrap globally #230128
Comments
The cells all have word wrap disabled for me based on that setting as expected. |
Hi Aaron, I have created profile with all default parameters named "Untitled" as is, Then I have moved to File> New window with Profile > Untitled Then I have opened the existing file .ipynb jupyter notebook using "Open File" menu As we can see in above image "results" variable was word-wrapped somehow, even though all the configurations are on Default Thank you |
is that a python cell? |
Its Python Jupyter notebook cell. I have created "Jupyter: New Jupyter Notebook" empty and saved it in newly created above "Untitled" profile with all default parameters only. Then I copied the long json string variable and python code into its cell, and saved it. When I pasted data, it was showing in Single line and saved it. But when I closed workspace/profile and reopen it and then Open File .ipynb, all data was Wordwrapped. So it happens with new jupyter notebook as well. |
hi @amunger , am I missing something in configuration? |
Are you opening it from within a different workspace? does that workspace have a settings file? I haven't managed to reproduce this behavior, so it's really hard to say why it's happening for you. Is a regular text editor word wrapped as well? |
Can you create a single string with 10000+ characters and try to save it in in regular text file and same string you can copy into Jupyter Notebook as well then simply save both files. After that close the VSCode and then reopen it and then try to open both files, it will show as Wordwrapped by default and when you type "Alt+Z" then it will unwrap and show in Single line text. I have attached VSCode Profile Exports for your reference. Files : Name : Usage 1 : VSCode_Default_Profile.code-profile : Regular day to day profile |
Hi Thank you @amunger I have tried to make Everywhere "word wrap" config to "Off" in User & Workspace options, After that I have manually made the wrapped lines to unwrap using "Alt + Z" and saved file. ( Jupyter Cell Notebook ) but after restarting VSCode, and opening the .ipynb jupyter file, issue still persists. It Seems needs to RESET the VSCode. |
Just to boil this down to a simpler repro, can you confirm this behavior:
🐛 the line of text is wrapped |
I have followed above steps, Created EmptyFolder After reopening the VSCode and followed same process to open file, it shows as wordwrapped as below, |
Environment data
Version: 1.93.1 (system setup)
Commit: 38c31bc
Date: 2024-09-11T17:20:05.685Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631
Expected behaviour
Whenver we use the shortcut key "alt + z" it should disable wordwrap on all jupyter Notebook Cells
Actual behaviour
It is currently running on individual cell level and whenever we reopen the VSCode, it will be wordwrap again, so need to click each cell and click alt + z to remove word wraps
Steps to reproduce:
Default I have made wordwrap Off everywhere.
In below screenshot it shows "Modified elsewhere" popup, there also I have checked and made settings to Off.
but still issue persists after restarting the VSCode.
The text was updated successfully, but these errors were encountered: