mtoader/google-go-lang-idea-plugin — Issue #68: Automatic indentation problem
Author: dpx-infinity
Created: 2012-01-11 19:55:35+00:00
State: open

When I press enter in situation like this:

```go
if a == 0 {|}
```

I get the following position of the cursor:

```go
if a == 0 {
|
}
```

But what I expect is this:

```go
if a == 0 {
|
}
```

This is like Java and other languages modes work. This problem is very annoying since I have to press Space four times for every first line of code in the block.

Also, pressing Tab does not indent the code too. I have 'Emacs tab' command for Tab key, that is the one which does not insert Tab character directly, but instead indents current line correctly. I think this problem is somehow connected with the first one.