Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Add Wrap lines checkbox to source menu #13496

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion spyder/plugins/editor/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,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 @@ -838,7 +841,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 @@ -1008,6 +1012,7 @@ def get_plugin_actions(self):
show_classfunc_dropdown_action,
show_codestyle_warnings_action,
show_docstring_warnings_action,
wrap_lines_action,
underline_errors,
MENU_SEPARATOR,
self.todo_list_action,
Expand Down