Skip to content

Commit

Permalink
Add Wrap lines checkbox to source menu
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Oct 12, 2023
1 parent 090b1f7 commit 68240de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spyder/plugins/editor/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,9 @@ def get_plugin_actions(self):
_("Underline errors and warnings"),
'underline_errors', 'set_underline_errors_enabled')

wrap_lines_action = self._create_checkable_action(
_("Wrap lines"), 'wrap', 'set_wrap_enabled')

self.checkable_actions = {
'blank_spaces': showblanks_action,
'scroll_past_end': scrollpastend_action,
Expand All @@ -958,7 +961,8 @@ def get_plugin_actions(self):
'show_class_func_dropdown': show_classfunc_dropdown_action,
'pycodestyle': show_codestyle_warnings_action,
'pydocstyle': show_docstring_warnings_action,
'underline_errors': underline_errors}
'underline_errors': underline_errors,
'wrap': wrap_lines_action}

fixindentation_action = create_action(self, _("Fix indentation"),
tip=_("Replace tab characters by space characters"),
Expand Down Expand Up @@ -1172,6 +1176,7 @@ def get_plugin_actions(self):
show_codestyle_warnings_action,
show_docstring_warnings_action,
underline_errors,
wrap_lines_action,
MENU_SEPARATOR,
self.todo_list_action,
self.warning_list_action,
Expand Down

0 comments on commit 68240de

Please sign in to comment.