Skip to content

Conversation

@juergenhoetzel
Copy link
Contributor

Go programs typically start with a main package definition:

package main // Don't expand

func main() {
}

@AndreaCrotti
Copy link
Owner

That could be fine for me, but you mean you are writing package main yourself and then pressing tab and you don't want it to expand?

@AndreaCrotti AndreaCrotti added the seen PR was seen and initial feedback was given label Jun 3, 2018
@juergenhoetzel
Copy link
Contributor Author

That could be fine for me, but you mean you are writing package main yourself and then pressing tab and you don't want it to expand?

Exactly. 👍

@AndreaCrotti
Copy link
Owner

Yes ok but just to understand, why do you tab there considering it's at the end of the line, and you don't need to indent anyway?

@juergenhoetzel
Copy link
Contributor Author

Yes ok but just to understand, why do you tab there considering it's at the end of the line, and you don't need to indent anyway?

I use company-yasnippet to automatically complete snippets.
Also I mechanically press TAB when company completes to check if there is a useful snippet. This predicate would prevent me from doing this (in this case invalid) completion.

@AndreaCrotti
Copy link
Owner

Yes ok sounds reasonable, thanks!

@AndreaCrotti AndreaCrotti merged commit c1df49d into AndreaCrotti:master Jun 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

seen PR was seen and initial feedback was given

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants