I'm using ace editor with these settings:
ace.getSession().setTabSize(2);
ace.getSession().setUseSoftTabs(true);
ace.getSession().setUseWrapMode(true);
Whenever I press space it automatically indents it by 2. I only want it to indent by 2 spaces when I press tab, but 1 space when I press space. How do I fix it? Thanks.