{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/14888","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/14888/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/14888/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/14888/events","html_url":"https://github.com/Microsoft/vscode/issues/14888","id":186945469,"number":14888,"title":"Port Atom's editor:auto-indent to VSCode","user":{"login":"net","id":6983821,"avatar_url":"https://avatars.githubusercontent.com/u/6983821?v=3","gravatar_id":"","url":"https://api.github.com/users/net","html_url":"https://github.com/net","followers_url":"https://api.github.com/users/net/followers","following_url":"https://api.github.com/users/net/following{/other_user}","gists_url":"https://api.github.com/users/net/gists{/gist_id}","starred_url":"https://api.github.com/users/net/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/net/subscriptions","organizations_url":"https://api.github.com/users/net/orgs","repos_url":"https://api.github.com/users/net/repos","events_url":"https://api.github.com/users/net/events{/privacy}","received_events_url":"https://api.github.com/users/net/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-02T23:19:00Z","updated_at":"2016-11-03T17:23:42Z","closed_at":"2016-11-03T17:23:42Z","body":"I really want to switch to VSCode but it's missing an essential editor action. Many editors have an \"auto-indent\" action which automatically indents the current line—or a selection of lines if multiple lines are selected—to the appropriate indentation when used.\r\n\r\nThis is **not** the same as a normal indent: Auto-indent should indent the line immediately to the correct indentation (to the best of the editor's ability, of course) upon use, rather than requiring multiple uses to reach the expected level. If the current line is indented too far, auto-indent should deindent the line appropriately.\r\n\r\nThis is **not** the same as Format Selection: Auto-indent only indents/deindents, it does not preform any other formats. Additionally, auto-indent can be activated without a selection; the target line is inferred from the cursor's position. Auto-indent should work without a formatter, as indentation can be computed the same way as a new line's indentation.\r\n\r\nI find it much more efficient to bind `tab` to the `auto-indent` action, and use `⌘[`/`⌘]` to manually adjust indentation.\r\n\r\nAuto-indent in Sublime Text:\r\nhttps://coderwall.com/p/7yxpdw/auto-indenting-on-sublime-text-3\r\n\r\nAuto-indent in Atom:\r\nhttp://stackoverflow.com/questions/22611377/auto-indent-code-in-atom-editor\r\n\r\nThis behavior is default in Spacemacs (and maybe Emacs?)."}}
{"actor":{"display_login":"rebornix"}}