Skip to content

Commit

Permalink
use soft tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Aug 24, 2016
1 parent d954ba6 commit 2e4fb60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,13 @@
scrollbarStyle: 'simple',
autofocus: true,
dragDrop: false,
tabSize: 2,
extraKeys: {
Enter: 'newlineAndIndentContinueMarkdownList'
Enter: 'newlineAndIndentContinueMarkdownList',
Tab(cm) {
const spaces = Array(cm.getOption('indentUnit') + 1).join(' ')
cm.replaceSelection(spaces)
}
}
})
Expand Down

0 comments on commit 2e4fb60

Please sign in to comment.