{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/284","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/284/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/284/events","html_url":"https://github.com/Microsoft/vscode/issues/284","id":117911905,"number":284,"title":"Add option to display trailing whitespace","user":{"login":"jmmv","id":879272,"avatar_url":"https://avatars.githubusercontent.com/u/879272?v=3","gravatar_id":"","url":"https://api.github.com/users/jmmv","html_url":"https://github.com/jmmv","followers_url":"https://api.github.com/users/jmmv/followers","following_url":"https://api.github.com/users/jmmv/following{/other_user}","gists_url":"https://api.github.com/users/jmmv/gists{/gist_id}","starred_url":"https://api.github.com/users/jmmv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmmv/subscriptions","organizations_url":"https://api.github.com/users/jmmv/orgs","repos_url":"https://api.github.com/users/jmmv/repos","events_url":"https://api.github.com/users/jmmv/events{/privacy}","received_events_url":"https://api.github.com/users/jmmv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T21:29:37Z","updated_at":"2015-11-20T08:31:32Z","closed_at":"2015-11-20T08:31:32Z","body":"vscode currently has functionality to automatically delete trailing whitespace when a file is saved. That is pretty good, but I think this is insufficient: I have encountered a few times where trailing whitespace was *required* because of various reasons, and thus enabling automatic removal makes me a bit uncomfortable because it would mess up with those cases.\r\n\r\nI think it'd be beneficial if there was an option to display trailing whitespace instead.\r\n\r\nThe way this would work is by displaying the trailing whitespace in red. It is important to only display the trailing whitespace when the cursor is *not* positioned after the trailing whitespace: you do not want to see the scary red box when you hit Enter to start a new line and the new line is autoindented. The trailing whitespace is then clearly visible at any time and can be dealt with immediately.\r\n\r\nOther, more mature editors do this."},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/158322224","html_url":"https://github.com/Microsoft/vscode/issues/284#issuecomment-158322224","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/284","id":158322224,"user":{"login":"joaomoreno","id":22350,"avatar_url":"https://avatars.githubusercontent.com/u/22350?v=3","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T08:31:32Z","updated_at":"2015-11-20T08:31:32Z","body":"`\"editor.renderWhitespace\": true` makes all whitespace visible. Not exactly what you ask for, but enough to help you out."}}