-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
Feature "Toggle Word Wrap" broken in version 1.9.0 #20174
Comments
I had the same issue.
|
Broken for me as well. If I toggle word wrap, I do see a difference, but the text still wraps. Specifically I get 3 lines instead of 4. |
Broken in 1.91 as well. |
I can't repro on Ubuntu 16.10 in latest insiders. |
yes, broken on my mac. |
My issue falls under the subject heading but might be different from what others here are describing. |
This error occurs for me on 1.9.1 (Windows) even when I launch with I've noticed that the |
Take a look at #19842 especially the table in this comment. I don't agree with the implementation, but it seems the feature is working as intended. |
If it wants to write editor.wordwrap to the user settings instead of doing whatever it used to do, maybe that's fine- it seems to work as I expect when I don't have a settings.json. So I guess my problem is not directly related to Word Wrap and is instead that if I have manually edited settings.json at all VSC fails in its attempt to write to the user settings and the attempt to change the word wrap fails out with an error that gives no hint as to how to solve the problem ("Unable to write settings. Please open User Settings to correct error/warnings in the file and try again"). It is possible that I should look for this as a separate bug or file one. |
Thanks for the explanation. I have set editor.wrappingColumn to 10000 now to restore the the behavior to that I'm used to. I'd like if the behavior suggested in this comment would be implemented. But for me this issue is resolved. @TapestryOfAges I have edited my user settings too but encountered no problems and could actually watch the value changing. editor.wordWrap is appended as last item to the JSON |
Had same issue. Removed |
If your lines are longer than 300, they will still wrap even if you toggle word wrapping off... It is not resolved for me. Only generic resolution I've found is setting |
The explanation is at the end of this comment- #19842 (comment) -
And my suggestion will be to not use both settings simultaneously. That use-case is rare- wrapping at |
The point is that all of the sudden the option Toggle Word Wrap stopped working. Only here do I find out that there is a relation with What is the option Toggle Word Wrap supposed to do? Because it seems this option (in View menu) toggles the boolean flag right? So after setting |
According to #19842 (comment) - the change in 1.9 is that toggling In any case -- my opinion is that the behavior should be something like the following:
If vscode adopts the behavior in this table, the defaults would be I find it non-intuitive and confusing that when |
Does the setting "wrappingColumn" make sense at all? If the displayed text would be transformed actually (meaning line breaks are inserted at the specified column), it would make much sense and a "wrappingColumn" of 80 could be common. But I am not interested in just wrapping at some place that is not the viewport border. For me the text should break at the view port or not at all. I wonder which use case or habit makes it necassery to specify a wrapping column that is not the viewport border. |
I think Bill Stewart's comment makes a lot of sense. While I could live with c3er's ideas that "wrappingColumn" might be able to be deprecated, I like to use "wrappingColumn" to ensure that code wraps at an arbitrary right margin for publishing purposes. That said, if removing "wrappingColumn" made things easier to use wrapping with documents (ie, markdown instead of code) I could live with it. |
@rogerpence Is it possible to save a document with a set "wrappingColumn"? That would answer my question above. If not, I wonder how this setting helps you publish. |
@c3er - the use case for Aside: We need to be careful about distinguishing between visual line wrapping and actually inserting newlines into the editing buffer. The |
@Bill-Stewart This is a valid use case and the discussion can go on ;) I still prefer the suggested canges in this comment. But I think any behavioral change should be treated very crtical. |
Yes - because now https://marketplace.visualstudio.com/items?itemName=BillStewart.set-wrapping-column |
Ok. I'm starting to understand this. Yet, why---given that |
See #19842 (comment) for what the settings currently do and how they currently work. |
@Bill-Stewart But just pressing Alt+Z is so easy and fast ;) If "wordWrap" would be replaced with your extension I would be fine too. But I guess we can agree that the current behavior is very unintuitive. |
@jackweinbender I think it is the best if you open a new issue and append both the workspace settings file (if existing) and your user settings file. |
@c3er - you can still use the toggle if you want. Just be aware that it now changes your @jackweinbender - this isn't the right place for Q&A - ask here: http://stackoverflow.com/questions/tagged/vscode |
points to comment describing how lines will wrap with
about a question about the behavior of Guys I've been reading some of the issues around this topic and it seems you are (a bit at least) in denial. The way it currently works is perceived by users as a bug. There are 2 reasons for that:
If I toggle word wrap for one file, it does not mean I want it toggled for every file. Au contraire! The primary reason for using Solutions:
|
Yes I basically agree: Some settings should only affect the current buffer and not persist to |
I am convinced we have an usability problem here. I have extracted #21262 to address this option mess and I will implement the proposal there. IMHO this will reduce a lot of the friction with understanding or working with these wrapping-related settings. There remains the problem of what Toggle Word Wrap should do. After #21262, it will write Furthermore, there is also #20675 where we should track the notion of a per-buffer dynamic (in memory or perhaps persisted) setting and consider that Toggle Word Wrap should use it. |
We have decided in today's standup that for 1.10 , we make Toggle Word Wrap "in memory" again ( #21291). i.e. it will not write to user settings, and it will apply only to the current editor instance. It also means that the wrapping is highly transient. i.e. any touch of the settings.json will lead to it being lost. This is being tracked in #21487 |
Thank you. I think the new settings in 1.10 are more intuitive and much less confusing. |
Since the update to version 1.9.0 it is not possible to switch on word wrapping. Both the key combination Alt+Z and the menu item don't show any reaction.
The text was updated successfully, but these errors were encountered: