Title: Intellij IDEA: Complete Statement action doesn't put the caret inside the method · Issue #264 · google/google-java-format · GitHub
Open Graph Title: Intellij IDEA: Complete Statement action doesn't put the caret inside the method · Issue #264 · google/google-java-format
X Title: Intellij IDEA: Complete Statement action doesn't put the caret inside the method · Issue #264 · google/google-java-format
Description: There's a feature in Intellij IDEA: Complete Statement. Start typing method declaration, like: public void myMethod() and press Ctrl-Shift-A, that will open curly braces and will put the caret inside those curly braces with respective in...
Open Graph Description: There's a feature in Intellij IDEA: Complete Statement. Start typing method declaration, like: public void myMethod() and press Ctrl-Shift-A, that will open curly braces and will put the caret insi...
X Description: There's a feature in Intellij IDEA: Complete Statement. Start typing method declaration, like: public void myMethod() and press Ctrl-Shift-A, that will open curly braces and will put the caret ...
Opengraph URL: https://github.com/google/google-java-format/issues/264
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Intellij IDEA: Complete Statement action doesn't put the caret inside the method","articleBody":"There's a feature in Intellij IDEA: _Complete Statement_. Start typing method declaration, like: `public void myMethod()` and press `Ctrl-Shift-A`, that will open curly braces and will put the caret inside those curly braces with respective indentation. So the code will look as follows:\r\n\r\n```java\r\npublic void myMethod() {\r\n \r\n}\r\n```\r\n\r\nBut with `google-java-formatter` installed and enabled, version **1.5**, this shortcut and action doesn't open curly braces and doesn't put the caret inside the method. Instead, the code looks like follows when I press the shortcut after typing `... myMethod()`:\r\n\r\n```java\r\npublic void myMethod() {}\r\n```\r\n\r\nSo the method is closed and the caret is below outside the method.\r\n\r\nThe expected behaviour would be to open the curly braces and have the caret inside the method as was described in a first example.","author":{"url":"https://github.com/vplagov","@type":"Person","name":"vplagov"},"datePublished":"2018-03-06T20:38:20Z","url":"https://github.com/google/google-java-format/issues/264"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f3dd882f-9718-d874-9ca9-8ea549b1c0c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89BE:30A212:A27C5:E0314:6AFBB7E2 |
| html-safe-nonce | 39ec320deaca805b549ea26b9f42b251fb6834a74b581b4be81e7511df850f31 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUJFOjMwQTIxMjpBMjdDNTpFMDMxNDo2QUZCQjdFMiIsInZpc2l0b3JfaWQiOiIyNzY4MDc0MzQwNjYxMTgwMzg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cf527ec086ed8a07639d6ba4c983063897e92381cb79d4d97fce36074ac1650a |
| hovercard-subject-tag | issue:302856601 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/google-java-format/264/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f43b2a26a8809ef2c096cc124fc7f1a64fa3fe54679c61ba29199ef8455271e7/google/google-java-format/issues/264 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f43b2a26a8809ef2c096cc124fc7f1a64fa3fe54679c61ba29199ef8455271e7/google/google-java-format/issues/264 |
| og:image:alt | There's a feature in Intellij IDEA: Complete Statement. Start typing method declaration, like: public void myMethod() and press Ctrl-Shift-A, that will open curly braces and will put the caret insi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vplagov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c |
| turbo-cache-control | no-preview |
| go-import | github.com/google/google-java-format git https://github.com/google/google-java-format.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 35448780 |
| octolytics-dimension-repository_nwo | google/google-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35448780 |
| octolytics-dimension-repository_network_root_nwo | google/google-java-format |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4cce0e99cf61481a318ff12c2e8580153a6c7c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width