{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/11524","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/11524/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/11524/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/11524/events","html_url":"https://github.com/dotnet/roslyn/pull/11524","id":156458719,"number":11524,"title":"Split strings when a user hits 'enter' inside of one.","user":{"login":"CyrusNajmabadi","id":4564579,"avatar_url":"https://avatars.githubusercontent.com/u/4564579?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrusNajmabadi","html_url":"https://github.com/CyrusNajmabadi","followers_url":"https://api.github.com/users/CyrusNajmabadi/followers","following_url":"https://api.github.com/users/CyrusNajmabadi/following{/other_user}","gists_url":"https://api.github.com/users/CyrusNajmabadi/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrusNajmabadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrusNajmabadi/subscriptions","organizations_url":"https://api.github.com/users/CyrusNajmabadi/orgs","repos_url":"https://api.github.com/users/CyrusNajmabadi/repos","events_url":"https://api.github.com/users/CyrusNajmabadi/events{/privacy}","received_events_url":"https://api.github.com/users/CyrusNajmabadi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-24T09:19:34Z","updated_at":"2016-05-24T22:55:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/11524","html_url":"https://github.com/dotnet/roslyn/pull/11524","diff_url":"https://github.com/dotnet/roslyn/pull/11524.diff","patch_url":"https://github.com/dotnet/roslyn/pull/11524.patch"},"body":"This PR adds a new feature whereby we intercept and specially handle 'enter' within a string literal.  Previously 'enter' was not handled specially and this keystroke would end up breaking the string.  Now, we properly break the string into multiple strings with a concatenation operator ('+').  i.e. we'll go from:\r\n\r\n```c#\r\n// cursor is at the start of 'text'\r\nvar v = $\"This is a { complicated } interpolated text { literal }\";\r\n```\r\nto\r\n```c#\r\n// cursor is still at the start of 'text'\r\nvar v = $\"This is a { complicated } interpolated \" + \r\n    $\"text { literal }\";\r\n```\r\n\r\nThis goes in line with our desire to improve string handling with other features (like 'convert formatted string to interpolated string').  \r\n\r\nOne thing that hasn't been done, which we may or may not want, is to make this available behind a user visible option.  Personally though, i'm not sure that's necessary.\r\n\r\nThoughts on this feature appreciated.  Thanks!"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/221426514","html_url":"https://github.com/dotnet/roslyn/pull/11524#issuecomment-221426514","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/11524","id":221426514,"user":{"login":"CyrusNajmabadi","id":4564579,"avatar_url":"https://avatars.githubusercontent.com/u/4564579?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrusNajmabadi","html_url":"https://github.com/CyrusNajmabadi","followers_url":"https://api.github.com/users/CyrusNajmabadi/followers","following_url":"https://api.github.com/users/CyrusNajmabadi/following{/other_user}","gists_url":"https://api.github.com/users/CyrusNajmabadi/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrusNajmabadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrusNajmabadi/subscriptions","organizations_url":"https://api.github.com/users/CyrusNajmabadi/orgs","repos_url":"https://api.github.com/users/CyrusNajmabadi/repos","events_url":"https://api.github.com/users/CyrusNajmabadi/events{/privacy}","received_events_url":"https://api.github.com/users/CyrusNajmabadi/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T22:55:59Z","updated_at":"2016-05-24T22:55:59Z","body":"test vsi please"}}
{"actor":{"display_login":"CyrusNajmabadi"}}