How to set up RubyMine so that |tab| will trigger completion or indent depending on context?

Is there a way to set up RubyMine so that if the cursor is right after a symbol, pressing |tab| will trigger autocompletion, but if it's not, pressing |tab| will indent?

Please sign in to leave a comment.