Search code examples
coderush

Visibility indicators keyboard shortcut


I have recently begun using coderush. One thing that annoys me is that the templates almost always expand to private, where as I often want them to be public.

Since I use the keyboard alot, I would like to know if there is a keyboard shortcut in CR for changing the access modifiers similar to clicking on the visibility indicators.


Solution

  • Yes, there are Alt+Up and Alt+Down shortcuts to cycle through the legal visibility modifiers of an active member. This feature is called Scope Cycle. When the editor caret is somewhere inside a member (e.g. property, method, class, etc), the shortcuts will change its visibility.