diff --git a/spyder/config/main.py b/spyder/config/main.py index 154a9f3454e..7df48bdffaf 100644 --- a/spyder/config/main.py +++ b/spyder/config/main.py @@ -514,6 +514,7 @@ 'editor/run selection in debugger': CTRL + '+F9', 'editor/add cursor up': 'Alt+Shift+Up', 'editor/add cursor down': 'Alt+Shift+Down', + 'editor/clear extra cursors': 'Esc', # -- Internal console -- 'internal_console/inspect current object': "Ctrl+I", 'internal_console/clear shell': "Ctrl+L", diff --git a/spyder/plugins/editor/widgets/codeeditor/codeeditor.py b/spyder/plugins/editor/widgets/codeeditor/codeeditor.py index 21d1f36c88c..6f3beeb231f 100644 --- a/spyder/plugins/editor/widgets/codeeditor/codeeditor.py +++ b/spyder/plugins/editor/widgets/codeeditor/codeeditor.py @@ -670,6 +670,7 @@ def register_shortcuts(self): self.enter_array_table)), ('add cursor up', self.add_cursor_up), ('add cursor down', self.add_cursor_down), + ('clear extra cursors', self.clear_extra_cursors) ) for name, callback in shortcuts: