diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js
index 6a12f98a0..85321208b 100644
--- a/IPython/html/static/notebook/js/codecell.js
+++ b/IPython/html/static/notebook/js/codecell.js
@@ -101,7 +101,8 @@ var IPython = (function (IPython) {
},
mode: 'ipython',
theme: 'ipython',
- matchBrackets: true
+ matchBrackets: true,
+ autoCloseBrackets: true
}
};