Editor: added configuration option (Editor->General page) to enable the automatic generation of docstrings, if a docstring start sequenz was entered (default on).

Sat, 23 Jan 2021 12:52:18 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 23 Jan 2021 12:52:18 +0100
changeset 8002
6002378278c9
parent 8001
3b33b7d493ff
child 8003
59d1c0f80286
child 8004
38d359e2ded7

Editor: added configuration option (Editor->General page) to enable the automatic generation of docstrings, if a docstring start sequenz was entered (default on).

eric6/Preferences/ConfigurationPages/EditorGeneralPage.py file | annotate | diff | comparison | revisions
eric6/Preferences/ConfigurationPages/EditorGeneralPage.ui file | annotate | diff | comparison | revisions
eric6/Preferences/__init__.py file | annotate | diff | comparison | revisions
eric6/QScintilla/Editor.py file | annotate | diff | comparison | revisions
eric6/ViewManager/ViewManager.py file | annotate | diff | comparison | revisions
eric6/i18n/eric6_cs.ts file | annotate | diff | comparison | revisions
eric6/i18n/eric6_de.qm file | annotate | diff | comparison | revisions
eric6/i18n/eric6_de.ts file | annotate | diff | comparison | revisions
eric6/i18n/eric6_empty.ts file | annotate | diff | comparison | revisions
eric6/i18n/eric6_en.ts file | annotate | diff | comparison | revisions
eric6/i18n/eric6_es.ts file | annotate | diff | comparison | revisions
eric6/i18n/eric6_fr.ts file | annotate | diff | comparison | revisions
eric6/i18n/eric6_it.ts file | annotate | diff | comparison | revisions
eric6/i18n/eric6_pt.ts file | annotate | diff | comparison | revisions
eric6/i18n/eric6_ru.ts file | annotate | diff | comparison | revisions
eric6/i18n/eric6_tr.ts file | annotate | diff | comparison | revisions
eric6/i18n/eric6_zh_CN.ts file | annotate | diff | comparison | revisions
--- a/eric6/Preferences/ConfigurationPages/EditorGeneralPage.py	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/Preferences/ConfigurationPages/EditorGeneralPage.py	Sat Jan 23 12:52:18 2021 +0100
@@ -74,6 +74,8 @@
         index = self.docstringStyleComboBox.findData(
             Preferences.getEditor("DocstringType"))
         self.docstringStyleComboBox.setCurrentIndex(index)
+        self.docstringCompletionCheckBox.setChecked(
+            Preferences.getEditor("DocstringAutoGenerate"))
         
         virtualSpaceOptions = Preferences.getEditor("VirtualSpaceOptions")
         self.vsSelectionCheckBox.setChecked(
@@ -125,6 +127,9 @@
         Preferences.setEditor(
             "DocstringType",
             self.docstringStyleComboBox.currentData())
+        Preferences.setEditor(
+            "DocstringAutoGenerate",
+            self.docstringCompletionCheckBox.isChecked())
         
         virtualSpaceOptions = QsciScintillaBase.SCVS_NONE
         if self.vsSelectionCheckBox.isChecked():
--- a/eric6/Preferences/ConfigurationPages/EditorGeneralPage.ui	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/Preferences/ConfigurationPages/EditorGeneralPage.ui	Sat Jan 23 12:52:18 2021 +0100
@@ -394,15 +394,15 @@
      <property name="title">
       <string>Docstring</string>
      </property>
-     <layout class="QHBoxLayout" name="horizontalLayout_2">
-      <item>
+     <layout class="QGridLayout" name="gridLayout_6">
+      <item row="0" column="0">
        <widget class="QLabel" name="label_4">
         <property name="text">
          <string>Docstring Style:</string>
         </property>
        </widget>
       </item>
-      <item>
+      <item row="0" column="1">
        <widget class="QComboBox" name="docstringStyleComboBox">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
@@ -415,6 +415,16 @@
         </property>
        </widget>
       </item>
+      <item row="1" column="0" colspan="2">
+       <widget class="QCheckBox" name="docstringCompletionCheckBox">
+        <property name="toolTip">
+         <string>Select this to generate a docstring when the docstring start sequence was entered (e.g. &quot;&quot;&quot; for Python).</string>
+        </property>
+        <property name="text">
+         <string>Generate Docstring when Docstring start is entered</string>
+        </property>
+       </widget>
+      </item>
      </layout>
     </widget>
    </item>
@@ -476,6 +486,7 @@
   <tabstop>sourceOutlineShowCodingCheckBox</tabstop>
   <tabstop>comment0CheckBox</tabstop>
   <tabstop>docstringStyleComboBox</tabstop>
+  <tabstop>docstringCompletionCheckBox</tabstop>
   <tabstop>vsSelectionCheckBox</tabstop>
   <tabstop>vsUserCheckBox</tabstop>
  </tabstops>
--- a/eric6/Preferences/__init__.py	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/Preferences/__init__.py	Sat Jan 23 12:52:18 2021 +0100
@@ -503,6 +503,7 @@
         "SourceOutlineShowCoding": True,
         
         "DocstringType": "ericdoc",
+        "DocstringAutoGenerate": True,
         
         # All (most) lexers
         "AllFoldCompact": True,
--- a/eric6/QScintilla/Editor.py	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/QScintilla/Editor.py	Sat Jan 23 12:52:18 2021 +0100
@@ -8691,12 +8691,16 @@
         @param cursorPosition current cursor position (line and column)
         @type tuple of (int, int)
         """
-        if self.getDocstringGenerator().isDocstringIntro(cursorPosition):
-            lineText = self.text(cursorPosition[0])
+        if (
+            Preferences.getEditor("DocstringAutoGenerate") and
+            self.getDocstringGenerator().isDocstringIntro(cursorPosition)
+        ):
+            lineText2Cursor = self.text(cursorPosition[0])[:cursorPosition[1]]
             
             QTimer.singleShot(
                 300,
-                lambda: self.__popupDocstringMenu(lineText, cursorPosition)
+                lambda: self.__popupDocstringMenu(lineText2Cursor,
+                                                  cursorPosition)
             )
     
     def __popupDocstringMenu(self, lastLineText, lastCursorPosition):
@@ -8714,7 +8718,7 @@
         if lastCursorPosition != cursorPosition:
             return
         
-        if self.text(cursorPosition[0]) != lastLineText:
+        if self.text(cursorPosition[0])[:cursorPosition[1]] != lastLineText:
             return
         
         generator = self.getDocstringGenerator()
--- a/eric6/ViewManager/ViewManager.py	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/ViewManager/ViewManager.py	Sat Jan 23 12:52:18 2021 +0100
@@ -260,7 +260,8 @@
         else:
             return None
         
-    def setSbInfo(self, sbLine, sbPos, sbWritable, sbEncoding, sbLanguage,
+    from PyQt5.QtWidgets import QLabel
+    def setSbInfo(self, sbLine: QLabel, sbPos: QLabel, sbWritable, sbEncoding, sbLanguage,
                   sbEol, sbZoom):
         """
         Public method to transfer statusbar info from the user interface to
--- a/eric6/i18n/eric6_cs.ts	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/i18n/eric6_cs.ts	Sat Jan 23 12:52:18 2021 +0100
@@ -12280,7 +12280,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../QScintilla/Editor.py" line="8726"/>
+        <location filename="../QScintilla/Editor.py" line="8730"/>
         <source>Generate Docstring</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13643,32 +13643,32 @@
         <translation>&lt;b&gt;Vložit komentář do sloupce 0&lt;/b&gt;&lt;p&gt;Vybrat pro vložení značky komentáře do sloupce 0. Jinak je značka komentáře vložena na první neprázdnou pozici.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="434"/>
         <source>Virtual Space</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="430"/>
-        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="440"/>
-        <source>Select to enable a rectangular selection to extend into virtual space</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="443"/>
-        <source>Selection may access virtual space</source>
+        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="450"/>
-        <source>Select to allow the cursor to be moved into virtual space</source>
+        <source>Select to enable a rectangular selection to extend into virtual space</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="453"/>
+        <source>Selection may access virtual space</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="460"/>
+        <source>Select to allow the cursor to be moved into virtual space</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="463"/>
         <source>Cursor can move into virtual space</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13703,12 +13703,12 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Tab and Indent Override</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Shall the selected entries really be removed?</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13767,6 +13767,16 @@
         <source>Select the docstring style to be used</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="421"/>
+        <source>Select this to generate a docstring when the docstring start sequence was entered (e.g. &quot;&quot;&quot; for Python).</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <source>Generate Docstring when Docstring start is entered</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>EditorHighlightersPage</name>
@@ -53438,17 +53448,17 @@
 <context>
     <name>Preferences</name>
     <message>
-        <location filename="../Preferences/__init__.py" line="1629"/>
+        <location filename="../Preferences/__init__.py" line="1630"/>
         <source>Export Preferences</source>
         <translation>Předvolby exportu</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Import Preferences</source>
         <translation>Předvolby importu</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Properties File (*.ini);;All Files (*)</source>
         <translation type="unfinished"></translation>
     </message>
Binary file eric6/i18n/eric6_de.qm has changed
--- a/eric6/i18n/eric6_de.ts	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/i18n/eric6_de.ts	Sat Jan 23 12:52:18 2021 +0100
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE TS><TS version="2.0" language="de" sourcelanguage="">
+<!DOCTYPE TS>
+<TS version="2.1" language="de">
 <context>
     <name>AboutDialog</name>
     <message>
@@ -2052,8 +2053,8 @@
     </message>
     <message>
         <location filename="../WebBrowser/Bookmarks/BookmarksMenu.py" line="170"/>
-        <source>Open in New Tab<byte value="x9"/>Ctrl+LMB</source>
-        <translation>In neuem Register öffnen<byte value="x9"/>Strg+LMK</translation>
+        <source>Open in New Tab	Ctrl+LMB</source>
+        <translation>In neuem Register öffnen	Strg+LMK</translation>
     </message>
     <message>
         <location filename="../WebBrowser/Bookmarks/BookmarksMenu.py" line="174"/>
@@ -2121,8 +2122,8 @@
     </message>
     <message>
         <location filename="../WebBrowser/Bookmarks/BookmarksToolBar.py" line="90"/>
-        <source>Open in New Tab<byte value="x9"/>Ctrl+LMB</source>
-        <translation>In neuem Register öffnen<byte value="x9"/>Strg+LMK</translation>
+        <source>Open in New Tab	Ctrl+LMB</source>
+        <translation>In neuem Register öffnen	Strg+LMK</translation>
     </message>
     <message>
         <location filename="../WebBrowser/Bookmarks/BookmarksToolBar.py" line="94"/>
@@ -11894,7 +11895,7 @@
         <translation>&lt;p&gt;Die Datei &lt;b&gt;{0}&lt;/b&gt; wurde geändert, während sie in eric geöffnet war. Neu einlesen?&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../QScintilla/Editor.py" line="8726"/>
+        <location filename="../QScintilla/Editor.py" line="8730"/>
         <source>Generate Docstring</source>
         <translation>Docstring erzeugen</translation>
     </message>
@@ -13243,32 +13244,32 @@
         <translation>&lt;b&gt;Kommentarzeichen in Spalte 0 einfügen&lt;/b&gt;&lt;p&gt;Auswählen, um das Kommentarzeichen in Spalte 0 einzufügen. Ansonsten wird das Kommentarzeichen an der ersten Stelle, die kein Leerzeichen ist, eingefügt.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="434"/>
         <source>Virtual Space</source>
         <translation>Virtueller Bereich</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="430"/>
-        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
-        <translation>Der virtuelle Bereich ist der Bereich nach dem letzten Zeichen einer Zeile. Hierfür wird erst Platz allokiert, wenn Text eingegeben oder hineinkopiert wird. Die Verwendung des virtuellen Bereiches kann mit diesen Optionen konfiguriert werden.</translation>
-    </message>
-    <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="440"/>
-        <source>Select to enable a rectangular selection to extend into virtual space</source>
-        <translation>Auswählen, um zuzulassen, dass eine rechteckigen Auswahl bis in den virtuellen Bereich ausgedehnt wird</translation>
-    </message>
-    <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="443"/>
-        <source>Selection may access virtual space</source>
-        <translation>Auswahl in den virtuellen Bereich erweitern</translation>
+        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
+        <translation>Der virtuelle Bereich ist der Bereich nach dem letzten Zeichen einer Zeile. Hierfür wird erst Platz allokiert, wenn Text eingegeben oder hineinkopiert wird. Die Verwendung des virtuellen Bereiches kann mit diesen Optionen konfiguriert werden.</translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="450"/>
-        <source>Select to allow the cursor to be moved into virtual space</source>
-        <translation>Auswählen, um zuzulassen, dass die Einfügemarke in den virtuellen Bereich bewegt wird</translation>
+        <source>Select to enable a rectangular selection to extend into virtual space</source>
+        <translation>Auswählen, um zuzulassen, dass eine rechteckigen Auswahl bis in den virtuellen Bereich ausgedehnt wird</translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="453"/>
+        <source>Selection may access virtual space</source>
+        <translation>Auswahl in den virtuellen Bereich erweitern</translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="460"/>
+        <source>Select to allow the cursor to be moved into virtual space</source>
+        <translation>Auswählen, um zuzulassen, dass die Einfügemarke in den virtuellen Bereich bewegt wird</translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="463"/>
         <source>Cursor can move into virtual space</source>
         <translation>Einfügemarke in den virtuellen Bereich bewegen</translation>
     </message>
@@ -13303,12 +13304,12 @@
         <translation>Drücken, um die ausgewählte Sprachen spezifische Änderung zu bearbeiten</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Tab and Indent Override</source>
         <translation>Tabulator und Einrückung Änderung</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Shall the selected entries really be removed?</source>
         <translation>Sollen die ausgewählten Einträge wirklich gelöscht werden?</translation>
     </message>
@@ -13367,6 +13368,16 @@
         <source>Select the docstring style to be used</source>
         <translation>Wähle den zu verwendenden Stil für Docstrings</translation>
     </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="421"/>
+        <source>Select this to generate a docstring when the docstring start sequence was entered (e.g. &quot;&quot;&quot; for Python).</source>
+        <translation>Dies auswählen, um einen Docstring einzufügen, wenn die Startsequenz für Docstrings eingegeben wurde (z.B. &quot;&quot;&quot; für Python).</translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <source>Generate Docstring when Docstring start is entered</source>
+        <translation>Docstring erzeugen, wenn Docstring Start eingegeben wurde</translation>
+    </message>
 </context>
 <context>
     <name>EditorHighlightersPage</name>
@@ -44652,12 +44663,12 @@
     </message>
     <message>
         <location filename="../MicroPython/MicroPythonWidget.py" line="1050"/>
-        <source>&#xc2;&#xb5;Py Chart</source>
+        <source>µPy Chart</source>
         <translation>µPy Chart</translation>
     </message>
     <message>
         <location filename="../MicroPython/MicroPythonWidget.py" line="1130"/>
-        <source>&#xc2;&#xb5;Py Files</source>
+        <source>µPy Files</source>
         <translation>µPy Dateien</translation>
     </message>
     <message>
@@ -50092,17 +50103,17 @@
 <context>
     <name>Preferences</name>
     <message>
-        <location filename="../Preferences/__init__.py" line="1629"/>
+        <location filename="../Preferences/__init__.py" line="1630"/>
         <source>Export Preferences</source>
         <translation>Einstellungen exportieren</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Import Preferences</source>
         <translation>Einstellungen importieren</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Properties File (*.ini);;All Files (*)</source>
         <translation>Properties-Dateien (*.ini);;Alle Dateien (*)</translation>
     </message>
@@ -83831,8 +83842,8 @@
     </message>
     <message>
         <location filename="../WebBrowser/WebBrowserView.py" line="666"/>
-        <source>Open Link in New Tab<byte value="x9"/>Ctrl+LMB</source>
-        <translation>Link in neuem Fenster öffnen<byte value="x9"/>Strg+LMK</translation>
+        <source>Open Link in New Tab	Ctrl+LMB</source>
+        <translation>Link in neuem Fenster öffnen	Strg+LMK</translation>
     </message>
     <message>
         <location filename="../WebBrowser/WebBrowserView.py" line="672"/>
--- a/eric6/i18n/eric6_empty.ts	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/i18n/eric6_empty.ts	Sat Jan 23 12:52:18 2021 +0100
@@ -11792,7 +11792,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../QScintilla/Editor.py" line="8726"/>
+        <location filename="../QScintilla/Editor.py" line="8730"/>
         <source>Generate Docstring</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13139,32 +13139,32 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="434"/>
         <source>Virtual Space</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="430"/>
-        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="440"/>
-        <source>Select to enable a rectangular selection to extend into virtual space</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="443"/>
-        <source>Selection may access virtual space</source>
+        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="450"/>
-        <source>Select to allow the cursor to be moved into virtual space</source>
+        <source>Select to enable a rectangular selection to extend into virtual space</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="453"/>
+        <source>Selection may access virtual space</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="460"/>
+        <source>Select to allow the cursor to be moved into virtual space</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="463"/>
         <source>Cursor can move into virtual space</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13199,12 +13199,12 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Tab and Indent Override</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Shall the selected entries really be removed?</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13263,6 +13263,16 @@
         <source>Select the docstring style to be used</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="421"/>
+        <source>Select this to generate a docstring when the docstring start sequence was entered (e.g. &quot;&quot;&quot; for Python).</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <source>Generate Docstring when Docstring start is entered</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>EditorHighlightersPage</name>
@@ -49846,17 +49856,17 @@
 <context>
     <name>Preferences</name>
     <message>
-        <location filename="../Preferences/__init__.py" line="1629"/>
+        <location filename="../Preferences/__init__.py" line="1630"/>
         <source>Export Preferences</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Properties File (*.ini);;All Files (*)</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Import Preferences</source>
         <translation type="unfinished"></translation>
     </message>
--- a/eric6/i18n/eric6_en.ts	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/i18n/eric6_en.ts	Sat Jan 23 12:52:18 2021 +0100
@@ -11807,7 +11807,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../QScintilla/Editor.py" line="8726"/>
+        <location filename="../QScintilla/Editor.py" line="8730"/>
         <source>Generate Docstring</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13154,32 +13154,32 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="434"/>
         <source>Virtual Space</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="430"/>
-        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="440"/>
-        <source>Select to enable a rectangular selection to extend into virtual space</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="443"/>
-        <source>Selection may access virtual space</source>
+        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="450"/>
-        <source>Select to allow the cursor to be moved into virtual space</source>
+        <source>Select to enable a rectangular selection to extend into virtual space</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="453"/>
+        <source>Selection may access virtual space</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="460"/>
+        <source>Select to allow the cursor to be moved into virtual space</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="463"/>
         <source>Cursor can move into virtual space</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13214,12 +13214,12 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Tab and Indent Override</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Shall the selected entries really be removed?</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13278,6 +13278,16 @@
         <source>Select the docstring style to be used</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="421"/>
+        <source>Select this to generate a docstring when the docstring start sequence was entered (e.g. &quot;&quot;&quot; for Python).</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <source>Generate Docstring when Docstring start is entered</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>EditorHighlightersPage</name>
@@ -49888,17 +49898,17 @@
 <context>
     <name>Preferences</name>
     <message>
-        <location filename="../Preferences/__init__.py" line="1629"/>
+        <location filename="../Preferences/__init__.py" line="1630"/>
         <source>Export Preferences</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Import Preferences</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Properties File (*.ini);;All Files (*)</source>
         <translation type="unfinished"></translation>
     </message>
--- a/eric6/i18n/eric6_es.ts	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/i18n/eric6_es.ts	Sat Jan 23 12:52:18 2021 +0100
@@ -12019,7 +12019,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../QScintilla/Editor.py" line="8726"/>
+        <location filename="../QScintilla/Editor.py" line="8730"/>
         <source>Generate Docstring</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13368,32 +13368,32 @@
         <translation>&lt;b&gt;Insertar comentario en la columna 0&lt;/b&gt;&lt;p&gt;Seleccionar para insertar el signo de comentario en la columna 0. De otro modo, el signo de comentario se inserta en la primera posición de no espacio en blanco.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="434"/>
         <source>Virtual Space</source>
         <translation>Espacio Virtual</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="430"/>
-        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
-        <translation>Espacio virtual es el espacio detrás del último carácter en una línea. No es reservado a menos que se introduzca o se copie algún texto en él. El uso del espacio virtual puede ser configurado con estas selecciones.</translation>
-    </message>
-    <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="440"/>
-        <source>Select to enable a rectangular selection to extend into virtual space</source>
-        <translation>Seleccionar para habilitar una selección rectangular para extender en el espacio virtual</translation>
-    </message>
-    <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="443"/>
-        <source>Selection may access virtual space</source>
-        <translation>La selección puede acceder el espacio virtual</translation>
+        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
+        <translation>Espacio virtual es el espacio detrás del último carácter en una línea. No es reservado a menos que se introduzca o se copie algún texto en él. El uso del espacio virtual puede ser configurado con estas selecciones.</translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="450"/>
-        <source>Select to allow the cursor to be moved into virtual space</source>
-        <translation>Seleccionar para permitir al cursor moverse dentro del espacio virtual</translation>
+        <source>Select to enable a rectangular selection to extend into virtual space</source>
+        <translation>Seleccionar para habilitar una selección rectangular para extender en el espacio virtual</translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="453"/>
+        <source>Selection may access virtual space</source>
+        <translation>La selección puede acceder el espacio virtual</translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="460"/>
+        <source>Select to allow the cursor to be moved into virtual space</source>
+        <translation>Seleccionar para permitir al cursor moverse dentro del espacio virtual</translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="463"/>
         <source>Cursor can move into virtual space</source>
         <translation>El cursor se puede mover dentro del espacio virtual</translation>
     </message>
@@ -13428,12 +13428,12 @@
         <translation>Pulsar para editar la sobreescritura específica de lenguaje seleccionada</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Tab and Indent Override</source>
         <translation>Sobreescritura de Tabulación e Indentación</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Shall the selected entries really be removed?</source>
         <translation>¿Desea eliminar las entradas seleccionadas?</translation>
     </message>
@@ -13492,6 +13492,16 @@
         <source>Select the docstring style to be used</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="421"/>
+        <source>Select this to generate a docstring when the docstring start sequence was entered (e.g. &quot;&quot;&quot; for Python).</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <source>Generate Docstring when Docstring start is entered</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>EditorHighlightersPage</name>
@@ -50369,17 +50379,17 @@
 <context>
     <name>Preferences</name>
     <message>
-        <location filename="../Preferences/__init__.py" line="1629"/>
+        <location filename="../Preferences/__init__.py" line="1630"/>
         <source>Export Preferences</source>
         <translation>Exportar Preferencias</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Import Preferences</source>
         <translation>Importar Preferencias</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Properties File (*.ini);;All Files (*)</source>
         <translation>Archivo de Propiedades (*.ini);;Todos los archivos (*)</translation>
     </message>
--- a/eric6/i18n/eric6_fr.ts	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/i18n/eric6_fr.ts	Sat Jan 23 12:52:18 2021 +0100
@@ -12244,7 +12244,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../QScintilla/Editor.py" line="8726"/>
+        <location filename="../QScintilla/Editor.py" line="8730"/>
         <source>Generate Docstring</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13613,32 +13613,32 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="434"/>
         <source>Virtual Space</source>
         <translation>Espace virtuel</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="430"/>
-        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="440"/>
-        <source>Select to enable a rectangular selection to extend into virtual space</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="443"/>
-        <source>Selection may access virtual space</source>
+        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="450"/>
-        <source>Select to allow the cursor to be moved into virtual space</source>
+        <source>Select to enable a rectangular selection to extend into virtual space</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="453"/>
+        <source>Selection may access virtual space</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="460"/>
+        <source>Select to allow the cursor to be moved into virtual space</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="463"/>
         <source>Cursor can move into virtual space</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13673,12 +13673,12 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Tab and Indent Override</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Shall the selected entries really be removed?</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13737,6 +13737,16 @@
         <source>Select the docstring style to be used</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="421"/>
+        <source>Select this to generate a docstring when the docstring start sequence was entered (e.g. &quot;&quot;&quot; for Python).</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <source>Generate Docstring when Docstring start is entered</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>EditorHighlightersPage</name>
@@ -52826,17 +52836,17 @@
 <context>
     <name>Preferences</name>
     <message>
-        <location filename="../Preferences/__init__.py" line="1629"/>
+        <location filename="../Preferences/__init__.py" line="1630"/>
         <source>Export Preferences</source>
         <translation>Export des préférences</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Import Preferences</source>
         <translation>Import des préférences</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Properties File (*.ini);;All Files (*)</source>
         <translation>Fichier propriétés (*.ini);;Tous les fichiers (*)</translation>
     </message>
--- a/eric6/i18n/eric6_it.ts	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/i18n/eric6_it.ts	Sat Jan 23 12:52:18 2021 +0100
@@ -12481,7 +12481,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../QScintilla/Editor.py" line="8726"/>
+        <location filename="../QScintilla/Editor.py" line="8730"/>
         <source>Generate Docstring</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13845,32 +13845,32 @@
         <translation>Inserisci commento alla colonna 0</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="434"/>
         <source>Virtual Space</source>
         <translation>Spazio Virtuale</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="430"/>
-        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
-        <translation>Lo spazio Virtuale è lo spazio dopo l&apos;ultimo carattere della riga. Non viene allocato fintantochè del testo non viene inserito o copiato in esso. L&apos;uso dello Spazio Virtuale può venir configurato da questa selezione.</translation>
-    </message>
-    <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="440"/>
-        <source>Select to enable a rectangular selection to extend into virtual space</source>
-        <translation>Seleziona per abilitare una selezione rettangolare ad estendersi nello Spazio Virtuale</translation>
-    </message>
-    <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="443"/>
-        <source>Selection may access virtual space</source>
-        <translation>Seleziona per abilitare lo Spazio Virtuale</translation>
+        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
+        <translation>Lo spazio Virtuale è lo spazio dopo l&apos;ultimo carattere della riga. Non viene allocato fintantochè del testo non viene inserito o copiato in esso. L&apos;uso dello Spazio Virtuale può venir configurato da questa selezione.</translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="450"/>
-        <source>Select to allow the cursor to be moved into virtual space</source>
-        <translation>Seleziona per permette al cursore di muoversi nello Spazio Virtuale</translation>
+        <source>Select to enable a rectangular selection to extend into virtual space</source>
+        <translation>Seleziona per abilitare una selezione rettangolare ad estendersi nello Spazio Virtuale</translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="453"/>
+        <source>Selection may access virtual space</source>
+        <translation>Seleziona per abilitare lo Spazio Virtuale</translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="460"/>
+        <source>Select to allow the cursor to be moved into virtual space</source>
+        <translation>Seleziona per permette al cursore di muoversi nello Spazio Virtuale</translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="463"/>
         <source>Cursor can move into virtual space</source>
         <translation>Il cursore può muoversi nello Spazio Virtuale</translation>
     </message>
@@ -13905,12 +13905,12 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Tab and Indent Override</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Shall the selected entries really be removed?</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13969,6 +13969,16 @@
         <source>Select the docstring style to be used</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="421"/>
+        <source>Select this to generate a docstring when the docstring start sequence was entered (e.g. &quot;&quot;&quot; for Python).</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <source>Generate Docstring when Docstring start is entered</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>EditorHighlightersPage</name>
@@ -55161,17 +55171,17 @@
 <context>
     <name>Preferences</name>
     <message>
-        <location filename="../Preferences/__init__.py" line="1629"/>
+        <location filename="../Preferences/__init__.py" line="1630"/>
         <source>Export Preferences</source>
         <translation>Esporta Preferenze</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Import Preferences</source>
         <translation>Importa Preferenze</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Properties File (*.ini);;All Files (*)</source>
         <translation>File proprietà (*.ini);;Tutti i file(*)</translation>
     </message>
--- a/eric6/i18n/eric6_pt.ts	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/i18n/eric6_pt.ts	Sat Jan 23 12:52:18 2021 +0100
@@ -12489,7 +12489,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../QScintilla/Editor.py" line="8726"/>
+        <location filename="../QScintilla/Editor.py" line="8730"/>
         <source>Generate Docstring</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13852,32 +13852,32 @@
         <translation>Inserir comentário na coluna 0</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="434"/>
         <source>Virtual Space</source>
         <translation>Espaço Virtual</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="430"/>
-        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
-        <translation>Espaço virtual é o espaço depois do último caracter de uma linha. Não está reservado a não ser que se introduza ou copie algum texto nele. A utilização do espaço virtual pode configurar-se com estas seleções.</translation>
-    </message>
-    <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="440"/>
-        <source>Select to enable a rectangular selection to extend into virtual space</source>
-        <translation>Selecionar para habilitar uma seleção retangular para extender o espaço virtual</translation>
-    </message>
-    <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="443"/>
-        <source>Selection may access virtual space</source>
-        <translation>Seleção pode aceder ao espaço virtual</translation>
+        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
+        <translation>Espaço virtual é o espaço depois do último caracter de uma linha. Não está reservado a não ser que se introduza ou copie algum texto nele. A utilização do espaço virtual pode configurar-se com estas seleções.</translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="450"/>
-        <source>Select to allow the cursor to be moved into virtual space</source>
-        <translation>Selecionar para permitir mover o cursor no espaço virtual</translation>
+        <source>Select to enable a rectangular selection to extend into virtual space</source>
+        <translation>Selecionar para habilitar uma seleção retangular para extender o espaço virtual</translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="453"/>
+        <source>Selection may access virtual space</source>
+        <translation>Seleção pode aceder ao espaço virtual</translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="460"/>
+        <source>Select to allow the cursor to be moved into virtual space</source>
+        <translation>Selecionar para permitir mover o cursor no espaço virtual</translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="463"/>
         <source>Cursor can move into virtual space</source>
         <translation>Cursor pode mover-se dentro do espaço virtual</translation>
     </message>
@@ -13912,12 +13912,12 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Tab and Indent Override</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Shall the selected entries really be removed?</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13976,6 +13976,16 @@
         <source>Select the docstring style to be used</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="421"/>
+        <source>Select this to generate a docstring when the docstring start sequence was entered (e.g. &quot;&quot;&quot; for Python).</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <source>Generate Docstring when Docstring start is entered</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>EditorHighlightersPage</name>
@@ -54622,17 +54632,17 @@
 <context>
     <name>Preferences</name>
     <message>
-        <location filename="../Preferences/__init__.py" line="1629"/>
+        <location filename="../Preferences/__init__.py" line="1630"/>
         <source>Export Preferences</source>
         <translation>Exportar Preferências</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Import Preferences</source>
         <translation>Importar Preferências</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Properties File (*.ini);;All Files (*)</source>
         <translation>Ficheiro de Propriedades (*.ini);;Ficheiros Todos (*)</translation>
     </message>
--- a/eric6/i18n/eric6_ru.ts	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/i18n/eric6_ru.ts	Sat Jan 23 12:52:18 2021 +0100
@@ -12039,7 +12039,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../QScintilla/Editor.py" line="8726"/>
+        <location filename="../QScintilla/Editor.py" line="8730"/>
         <source>Generate Docstring</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13389,32 +13389,32 @@
         <translation>Вставлять комментарий в первую колонку</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="434"/>
         <source>Virtual Space</source>
         <translation>Виртуальное пространство</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="430"/>
-        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
-        <translation>Виртуальное пространство - это пространство за концом строки, которое не выделяется до тех пор, пока оно не потребуется.</translation>
-    </message>
-    <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="440"/>
-        <source>Select to enable a rectangular selection to extend into virtual space</source>
-        <translation>Разрешить прямоугольному выделению заходить в виртуальное пространство</translation>
-    </message>
-    <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="443"/>
-        <source>Selection may access virtual space</source>
-        <translation>Разрешить выделению заходить в виртуальное пространство</translation>
+        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
+        <translation>Виртуальное пространство - это пространство за концом строки, которое не выделяется до тех пор, пока оно не потребуется.</translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="450"/>
-        <source>Select to allow the cursor to be moved into virtual space</source>
-        <translation>Разрешить курсору заходить в виртуальное пространство</translation>
+        <source>Select to enable a rectangular selection to extend into virtual space</source>
+        <translation>Разрешить прямоугольному выделению заходить в виртуальное пространство</translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="453"/>
+        <source>Selection may access virtual space</source>
+        <translation>Разрешить выделению заходить в виртуальное пространство</translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="460"/>
+        <source>Select to allow the cursor to be moved into virtual space</source>
+        <translation>Разрешить курсору заходить в виртуальное пространство</translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="463"/>
         <source>Cursor can move into virtual space</source>
         <translation>Курсор может заходить в виртуальное пространство</translation>
     </message>
@@ -13449,12 +13449,12 @@
         <translation>Редактировать выбранное переопределение конкретного языка</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Tab and Indent Override</source>
         <translation>Переопределение табуляции и отступа</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Shall the selected entries really be removed?</source>
         <translation>Действительно ли выбранные записи должны быть удалены?</translation>
     </message>
@@ -13513,6 +13513,16 @@
         <source>Select the docstring style to be used</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="421"/>
+        <source>Select this to generate a docstring when the docstring start sequence was entered (e.g. &quot;&quot;&quot; for Python).</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <source>Generate Docstring when Docstring start is entered</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>EditorHighlightersPage</name>
@@ -50428,17 +50438,17 @@
 <context>
     <name>Preferences</name>
     <message>
-        <location filename="../Preferences/__init__.py" line="1629"/>
+        <location filename="../Preferences/__init__.py" line="1630"/>
         <source>Export Preferences</source>
         <translation>Экспорт предпочтений</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Import Preferences</source>
         <translation>Импорт предпочтений</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Properties File (*.ini);;All Files (*)</source>
         <translation>Файлы предпочтений (*.ini);;Все файлы (*)</translation>
     </message>
--- a/eric6/i18n/eric6_tr.ts	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/i18n/eric6_tr.ts	Sat Jan 23 12:52:18 2021 +0100
@@ -12325,7 +12325,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../QScintilla/Editor.py" line="8726"/>
+        <location filename="../QScintilla/Editor.py" line="8730"/>
         <source>Generate Docstring</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13688,32 +13688,32 @@
         <translation>Yorumlayıcının 0 sütununa araya ekle</translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="434"/>
         <source>Virtual Space</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="430"/>
-        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="440"/>
-        <source>Select to enable a rectangular selection to extend into virtual space</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="443"/>
-        <source>Selection may access virtual space</source>
+        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="450"/>
-        <source>Select to allow the cursor to be moved into virtual space</source>
+        <source>Select to enable a rectangular selection to extend into virtual space</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="453"/>
+        <source>Selection may access virtual space</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="460"/>
+        <source>Select to allow the cursor to be moved into virtual space</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="463"/>
         <source>Cursor can move into virtual space</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13748,12 +13748,12 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Tab and Indent Override</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Shall the selected entries really be removed?</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13812,6 +13812,16 @@
         <source>Select the docstring style to be used</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="421"/>
+        <source>Select this to generate a docstring when the docstring start sequence was entered (e.g. &quot;&quot;&quot; for Python).</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <source>Generate Docstring when Docstring start is entered</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>EditorHighlightersPage</name>
@@ -53656,17 +53666,17 @@
 <context>
     <name>Preferences</name>
     <message>
-        <location filename="../Preferences/__init__.py" line="1629"/>
+        <location filename="../Preferences/__init__.py" line="1630"/>
         <source>Export Preferences</source>
         <translation>Seçenekleri Dışa Aktar</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Import Preferences</source>
         <translation>Seçenekleri İçe Aktar</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Properties File (*.ini);;All Files (*)</source>
         <translation type="unfinished"></translation>
     </message>
--- a/eric6/i18n/eric6_zh_CN.ts	Sat Jan 23 12:10:31 2021 +0100
+++ b/eric6/i18n/eric6_zh_CN.ts	Sat Jan 23 12:52:18 2021 +0100
@@ -12279,7 +12279,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../QScintilla/Editor.py" line="8726"/>
+        <location filename="../QScintilla/Editor.py" line="8730"/>
         <source>Generate Docstring</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13642,32 +13642,32 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="434"/>
         <source>Virtual Space</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="430"/>
-        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="440"/>
-        <source>Select to enable a rectangular selection to extend into virtual space</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="443"/>
-        <source>Selection may access virtual space</source>
+        <source>Virtual space is the space after the last character of a line. It is not allocated unless some text is entered or copied into it. Usage of virtual space can be configured with these selections.</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="450"/>
-        <source>Select to allow the cursor to be moved into virtual space</source>
+        <source>Select to enable a rectangular selection to extend into virtual space</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="453"/>
+        <source>Selection may access virtual space</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="460"/>
+        <source>Select to allow the cursor to be moved into virtual space</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="463"/>
         <source>Cursor can move into virtual space</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13702,12 +13702,12 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Tab and Indent Override</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="238"/>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.py" line="243"/>
         <source>Shall the selected entries really be removed?</source>
         <translation type="unfinished"></translation>
     </message>
@@ -13766,6 +13766,16 @@
         <source>Select the docstring style to be used</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="421"/>
+        <source>Select this to generate a docstring when the docstring start sequence was entered (e.g. &quot;&quot;&quot; for Python).</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../Preferences/ConfigurationPages/EditorGeneralPage.ui" line="424"/>
+        <source>Generate Docstring when Docstring start is entered</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>EditorHighlightersPage</name>
@@ -54403,17 +54413,17 @@
 <context>
     <name>Preferences</name>
     <message>
-        <location filename="../Preferences/__init__.py" line="1629"/>
+        <location filename="../Preferences/__init__.py" line="1630"/>
         <source>Export Preferences</source>
         <translation>导出首选项</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Import Preferences</source>
         <translation>导入首选项</translation>
     </message>
     <message>
-        <location filename="../Preferences/__init__.py" line="1657"/>
+        <location filename="../Preferences/__init__.py" line="1658"/>
         <source>Properties File (*.ini);;All Files (*)</source>
         <translation>属性文件 (*.ini);;所有文件 (*)</translation>
     </message>

eric ide

mercurial