{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/21262","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/21262/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/21262/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/21262/events","html_url":"https://github.com/Microsoft/vscode/issues/21262","id":209715246,"number":21262,"title":"Wrapping settings are confusing","user":{"login":"alexandrudima","id":5047891,"avatar_url":"https://avatars.githubusercontent.com/u/5047891?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrudima","html_url":"https://github.com/alexandrudima","followers_url":"https://api.github.com/users/alexandrudima/followers","following_url":"https://api.github.com/users/alexandrudima/following{/other_user}","gists_url":"https://api.github.com/users/alexandrudima/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrudima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrudima/subscriptions","organizations_url":"https://api.github.com/users/alexandrudima/orgs","repos_url":"https://api.github.com/users/alexandrudima/repos","events_url":"https://api.github.com/users/alexandrudima/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrudima/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-23T10:02:39Z","updated_at":"2017-02-23T10:02:39Z","closed_at":null,"body":"There are two important settings in VS Code that control line wrapping.\r\n\r\n* `editor.wrappingColumn` (300 by default)\r\n* and `editor.wordWrap` (false by default)\r\n\r\nExamples (with explanations):\r\n\r\n| `wordWrap` | `wrappingColumn` | Explanation |\r\n|---|---|---|\r\n| false | 300 | Lines will wrap at <code>300</code> |\r\n| false | 0 | Lines will wrap at <code>viewport_column</code> |\r\n| false | -1 | Lines will never wrap. |\r\n| true | 300 | Lines will wrap at <code>min(viewport_column, 300)</code> |\r\n| true | 0 | Lines will wrap at <code>viewport_column</code> |\r\n| true | -1 | Lines will never wrap. |\r\n\r\n---\r\n\r\nCurrently, `wrappingColumn` is the primary setting and `wordWrap` is secondary. i.e. notice in the above table how `wrappingColumn` -1 or 0 yields in the same behaviour regardless of `wordWrap`."}}
{"actor":{"display_login":"alexandrudima"}}