Method created by pressing Alt + Enter is always private

Answered

I am trying to modify the default behavior where, when I call a method which is not yet defined and press Alt+ Enter to create that method it is created always as private.

I want to make the visibility to be entered by the user while creating it. Just like how the return type works.

0
1 comment

Private is a good default, you can Alt+Enter on it to make it public later.

There is no setting to control it right now, request with the real world use case is welcome at https://youtrack.jetbrains.com/issues/IDEA.

0

Please sign in to leave a comment.