Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.13] gh-143774 - Improve IDLE Format Paragraph doc (GH-143775)#144063

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes fromall 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
24 changes: 19 additions & 5 deletionsDoc/library/idle.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -159,7 +159,7 @@ Go to Line

Show Completions
Open a scrollable list allowing selection of existing names. See
:ref:`Completions <completions>` in the Editing andnavigation section below.
:ref:`Completions <completions>` in the Editing andNavigation section below.

Expand Word
Expand a prefix you have typed to match a full word in the same window;
Expand All@@ -168,7 +168,7 @@ Expand Word
Show Call Tip
After an unclosed parenthesis for a function, open a small window with
function parameter hints. See :ref:`Calltips <calltips>` in the
Editing andnavigation section below.
Editing andNavigation section below.

Show Surrounding Parens
Highlight the surrounding parenthesis.
Expand All@@ -179,9 +179,9 @@ Format menu (Editor window only)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Format Paragraph
Reformat thecurrent blank-line-delimited paragraph in comment block or
multiline string or selected line in a string.All lines in the
paragraph will be formatted to less than N columns, where N defaults to 72.
Rewrap thetext block containing the text insert cursor.
Avoid code lines.See :ref:`Format block<format-block>` in the
Editing and Navigation section below.

Indent Region
Shift selected lines right by the indent width (default 4 spaces).
Expand DownExpand Up@@ -567,6 +567,20 @@ In an editor, import statements have no effect until one runs the file.
One might want to run a file after writing import statements, after
adding function definitions, or after opening an existing file.

.. _format-block:

Format block
^^^^^^^^^^^^

Reformat Paragraph rewraps a block ('paragraph') of contiguous equally
indented non-blank comments, a similar block of text within a multiline
string, or a selected subset of either.
If needed, add a blank line to separate string from code.
Partial lines in a selection expand to complete lines.
The resulting lines have the same indent as before
but have maximum total length of N columns (characters).
Change the default N of 72 on the Window tab of IDLE Settings.

.. _code-context:

Code Context
Expand Down
25 changes: 18 additions & 7 deletionsLib/idlelib/help.html
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
Better explain the operation of Format / Format Paragraph.
Loading

[8]ページ先頭

©2009-2026 Movatter.jp