{"action":"created","issue":{"url":"https://api.github.com/repos/StepicOrg/intellij-plugins/issues/9","repository_url":"https://api.github.com/repos/StepicOrg/intellij-plugins","labels_url":"https://api.github.com/repos/StepicOrg/intellij-plugins/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/StepicOrg/intellij-plugins/issues/9/comments","events_url":"https://api.github.com/repos/StepicOrg/intellij-plugins/issues/9/events","html_url":"https://github.com/StepicOrg/intellij-plugins/pull/9","id":183207825,"number":9,"title":"Implemented Auto run Reformat code","user":{"login":"meanmail","id":10301297,"avatar_url":"https://avatars.githubusercontent.com/u/10301297?v=3","gravatar_id":"","url":"https://api.github.com/users/meanmail","html_url":"https://github.com/meanmail","followers_url":"https://api.github.com/users/meanmail/followers","following_url":"https://api.github.com/users/meanmail/following{/other_user}","gists_url":"https://api.github.com/users/meanmail/gists{/gist_id}","starred_url":"https://api.github.com/users/meanmail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meanmail/subscriptions","organizations_url":"https://api.github.com/users/meanmail/orgs","repos_url":"https://api.github.com/users/meanmail/repos","events_url":"https://api.github.com/users/meanmail/events{/privacy}","received_events_url":"https://api.github.com/users/meanmail/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/StepicOrg/intellij-plugins/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/StepicOrg/intellij-plugins/milestones/1","html_url":"https://github.com/StepicOrg/intellij-plugins/milestones/R-0.3","labels_url":"https://api.github.com/repos/StepicOrg/intellij-plugins/milestones/1/labels","id":2054255,"number":1,"title":"R-0.3","description":"","creator":{"login":"taery","id":8366351,"avatar_url":"https://avatars.githubusercontent.com/u/8366351?v=3","gravatar_id":"","url":"https://api.github.com/users/taery","html_url":"https://github.com/taery","followers_url":"https://api.github.com/users/taery/followers","following_url":"https://api.github.com/users/taery/following{/other_user}","gists_url":"https://api.github.com/users/taery/gists{/gist_id}","starred_url":"https://api.github.com/users/taery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taery/subscriptions","organizations_url":"https://api.github.com/users/taery/orgs","repos_url":"https://api.github.com/users/taery/repos","events_url":"https://api.github.com/users/taery/events{/privacy}","received_events_url":"https://api.github.com/users/taery/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":3,"state":"open","created_at":"2016-10-07T09:21:46Z","updated_at":"2016-10-15T13:04:20Z","due_on":"2016-10-14T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-10-15T12:44:32Z","updated_at":"2016-10-17T15:12:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/StepicOrg/intellij-plugins/pulls/9","html_url":"https://github.com/StepicOrg/intellij-plugins/pull/9","diff_url":"https://github.com/StepicOrg/intellij-plugins/pull/9.diff","patch_url":"https://github.com/StepicOrg/intellij-plugins/pull/9.patch"},"body":"- [ ] @taery \r\n- [ ] @2Pit \r\n\r\nРеализован автоформат кода, после добавления/уборки окружающего кода.\r\nВ этом PR решается только эта задача #8 .\r\n\r\nВсе что касается автоформата вынес в отдельный класс (ReformatWholeEditor), в DirectivesUtils этому явно не место.\r\n\r\nОтличия от реализации через Action:\r\n\r\n- Не появляется всплывающее окошко, сообщающее о том сколько строк отформатированно\r\n- Форматируется весь текст в активном редакторе (было: только выделенный текст или весь если нет выделения - это настройка Action по-умолчанию её невозможно было изменить)\r\n- Не зависит от настроек, применяются все виды автоформата, кроме rearrange (отступы, оптимизация импорта)\r\n\r\n![autoformat](https://cloud.githubusercontent.com/assets/10301297/19415968/1588211e-93ac-11e6-88ba-122da24c5f06.gif)\r\n"},"comment":{"url":"https://api.github.com/repos/StepicOrg/intellij-plugins/issues/comments/254236621","html_url":"https://github.com/StepicOrg/intellij-plugins/pull/9#issuecomment-254236621","issue_url":"https://api.github.com/repos/StepicOrg/intellij-plugins/issues/9","id":254236621,"user":{"login":"2Pit","id":11159462,"avatar_url":"https://avatars.githubusercontent.com/u/11159462?v=3","gravatar_id":"","url":"https://api.github.com/users/2Pit","html_url":"https://github.com/2Pit","followers_url":"https://api.github.com/users/2Pit/followers","following_url":"https://api.github.com/users/2Pit/following{/other_user}","gists_url":"https://api.github.com/users/2Pit/gists{/gist_id}","starred_url":"https://api.github.com/users/2Pit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2Pit/subscriptions","organizations_url":"https://api.github.com/users/2Pit/orgs","repos_url":"https://api.github.com/users/2Pit/repos","events_url":"https://api.github.com/users/2Pit/events{/privacy}","received_events_url":"https://api.github.com/users/2Pit/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T15:12:27Z","updated_at":"2016-10-17T15:12:27Z","body":"Всё ок. Только хочется убрать автомачическое форматирование при удалении директив. Оно показывает себя не с лучшей стороны.\r\n![image](https://cloud.githubusercontent.com/assets/11159462/19443347/1e8ed494-9495-11e6-86ef-2961f1c72b51.png)\r\n"}}
{"actor":{"display_login":"2Pit"}}