Press Ctrl-Space for code completion, and Alt-Space for snippet insertion (try "sh"-Alt-Space).