google / google/google-java-format
Intellij IDEA: Complete Statement action doesn't put the caret inside the method
@plumpy já está trabalhando nisso.
Desde 30/3/2018.
- Linguagem predominante
- Java
- Estrelas
- 6.2k
- Forks
- 936
- Merge médio
- 6min
- PRs com merge (30d)
- 3
Descrição
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:
```java
public void myMethod() {
}
```
But 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()`:
```java
public void myMethod() {}
```
So the method is closed and the caret is below outside the method.
The expected behaviour would be to open the curly braces and have the caret inside the method as was described in a first example.
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Avaliação
Esta issue ainda não foi avaliada.