{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/5355","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/5355/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/5355/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/5355/events","html_url":"https://github.com/Microsoft/vscode/issues/5355","id":148708053,"number":5355,"title":"Snippets: tab character not consistently translated to spaces","user":{"login":"coe-jeubanks","id":10637809,"avatar_url":"https://avatars.githubusercontent.com/u/10637809?v=3","gravatar_id":"","url":"https://api.github.com/users/coe-jeubanks","html_url":"https://github.com/coe-jeubanks","followers_url":"https://api.github.com/users/coe-jeubanks/followers","following_url":"https://api.github.com/users/coe-jeubanks/following{/other_user}","gists_url":"https://api.github.com/users/coe-jeubanks/gists{/gist_id}","starred_url":"https://api.github.com/users/coe-jeubanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coe-jeubanks/subscriptions","organizations_url":"https://api.github.com/users/coe-jeubanks/orgs","repos_url":"https://api.github.com/users/coe-jeubanks/repos","events_url":"https://api.github.com/users/coe-jeubanks/events{/privacy}","received_events_url":"https://api.github.com/users/coe-jeubanks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"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},"milestone":null,"comments":4,"created_at":"2016-04-15T16:35:38Z","updated_at":"2016-04-28T10:41:59Z","closed_at":null,"body":"- VSCode Version: 1.0.0\r\n- OS Version: Windows 10\r\n\r\nWith VS Code option: \"editor.insertSpaces\": set to true, snippets only translate \\t characters to spaces when they are at the beginning of the string.\r\n\r\nFollowing snippet correctly translates \\t character to spaces:\r\n\r\n   \"If statement\": {\r\n      \"prefix\": \"if\",\r\n      \"body\": [\r\n         \"if ${true}\",\r\n         \"\\t$0\",\r\n         \"end-if\"\r\n      ]\r\n   }\r\n\r\nFollowing snippet incorrectly leaves \\t as a tab character:\r\n\r\n   \"If statement\": {\r\n      \"prefix\": \"if\",\r\n      \"body\": [\r\n         \"if ${true}\",\r\n         \"_\\t$0\",\r\n         \"end-if\"\r\n      ]\r\n   }"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/215383356","html_url":"https://github.com/Microsoft/vscode/issues/5355#issuecomment-215383356","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/5355","id":215383356,"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},"created_at":"2016-04-28T10:41:59Z","updated_at":"2016-04-28T10:41:59Z","body":"@coe-jeubanks is correct.\r\n\r\nWe only substitute leading tabs when inserting snippets."}}