Merge pull request #5372 from minrk/no-close-strings

Don't autoclose strings, because CodeMirror's behavior makes it confusing and awkward to type triple-quoted strings (and these are very common in Python).

An issue about this was filed in CodeMirror itself: https://github.com/marijnh/CodeMirror/issues/2385
This commit is contained in:
Fernando Perez 2014-03-18 11:14:24 -07:00
commit 5f086fded2

View File

@ -102,7 +102,8 @@ var IPython = (function (IPython) {
mode: 'ipython',
theme: 'ipython',
matchBrackets: true,
autoCloseBrackets: true
// don't auto-close strings because of CodeMirror #2385
autoCloseBrackets: "()[]{}"
}
};