<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Improve how the script editor handles indentation in Suggest an Idea</title>
    <link>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idi-p/1694167</link>
    <description>&lt;P&gt;Currently, Qlik Sense's browser-based script editor handles indentation by inserting a frustrating mix of spaces and tabs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If no text is selected, pressing tab inserts a 4-space-wide tab at the cursor.&lt;/LI&gt;&lt;LI&gt;If any text is selected, pressing tab indents the relevant line(s) by 2 spaces and converts tabs to spaces.&lt;/LI&gt;&lt;LI&gt;If no text is selected, pressing shift-tab removes 100% of the indentation from the current line.&lt;/LI&gt;&lt;LI&gt;If any text is selected, pressing shift-tab unindents the related line(s) by 2 spaces.&lt;/LI&gt;&lt;LI&gt;Pressing backspace deletes 1 character (rather than deleting 1 indentation level's worth of spaces when appropriate).&lt;/LI&gt;&lt;LI&gt;Pressing enter at the end of a line causes the newly inserted line to be auto-indented to the same level, which is good.&amp;nbsp; But if the original line was indented with tabs, the new line will be indented with an equivalent number of spaces.&lt;/LI&gt;&lt;LI&gt;When the "comment/uncomment" button is pressed, leading tabs are converted to spaces, and if you had selected both lines with tabs and lines with spaces that were visually aligned to start, they won't be aligned as comments.&amp;nbsp; When you press the button again to uncomment the code, it will be restored to how it was originally, but not if you edited it while it was commented to make the comment look ok.&lt;/LI&gt;&lt;LI&gt;If you use Qlik's editor exclusively, you will probably end up with a mix of tabs and spaces, and it's a burden to work with.&amp;nbsp; The only easy way to clean it up is to paste it into a real text editor that can convert between the two (e.g. Sublime).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Proposal:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Please settle on either spaces or tabs rather than mixing the two.&amp;nbsp;&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;You could add user preferences for tabs vs spaces and for indentation width, but that's of secondary importance.&amp;nbsp; &lt;STRONG&gt;The main need is for tab, shift-tab, backspace, enter, and the comment/uncomment button to work together in a cohesive way.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Ideally, when code is copied and pasted into the editor, the indentation should be standardized as well, or there could be a manual indentation-fixing button.&amp;nbsp; But this is just the cherry on top and should not hold back progress either.&amp;nbsp; This is because it's reasonable to hold users responsible for code they paste in, whereas Qlik is mostly responsible for the tab/space mess generated by their editor.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm not sure whether these behaviors vary depending on the browser, but I am using Chrome.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 15:02:35 GMT</pubDate>
    <dc:creator>mmarchese</dc:creator>
    <dc:date>2020-11-25T15:02:35Z</dc:date>
    <item>
      <title>Improve how the script editor handles indentation</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idi-p/1694167</link>
      <description>&lt;P&gt;Currently, Qlik Sense's browser-based script editor handles indentation by inserting a frustrating mix of spaces and tabs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If no text is selected, pressing tab inserts a 4-space-wide tab at the cursor.&lt;/LI&gt;&lt;LI&gt;If any text is selected, pressing tab indents the relevant line(s) by 2 spaces and converts tabs to spaces.&lt;/LI&gt;&lt;LI&gt;If no text is selected, pressing shift-tab removes 100% of the indentation from the current line.&lt;/LI&gt;&lt;LI&gt;If any text is selected, pressing shift-tab unindents the related line(s) by 2 spaces.&lt;/LI&gt;&lt;LI&gt;Pressing backspace deletes 1 character (rather than deleting 1 indentation level's worth of spaces when appropriate).&lt;/LI&gt;&lt;LI&gt;Pressing enter at the end of a line causes the newly inserted line to be auto-indented to the same level, which is good.&amp;nbsp; But if the original line was indented with tabs, the new line will be indented with an equivalent number of spaces.&lt;/LI&gt;&lt;LI&gt;When the "comment/uncomment" button is pressed, leading tabs are converted to spaces, and if you had selected both lines with tabs and lines with spaces that were visually aligned to start, they won't be aligned as comments.&amp;nbsp; When you press the button again to uncomment the code, it will be restored to how it was originally, but not if you edited it while it was commented to make the comment look ok.&lt;/LI&gt;&lt;LI&gt;If you use Qlik's editor exclusively, you will probably end up with a mix of tabs and spaces, and it's a burden to work with.&amp;nbsp; The only easy way to clean it up is to paste it into a real text editor that can convert between the two (e.g. Sublime).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Proposal:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Please settle on either spaces or tabs rather than mixing the two.&amp;nbsp;&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;You could add user preferences for tabs vs spaces and for indentation width, but that's of secondary importance.&amp;nbsp; &lt;STRONG&gt;The main need is for tab, shift-tab, backspace, enter, and the comment/uncomment button to work together in a cohesive way.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Ideally, when code is copied and pasted into the editor, the indentation should be standardized as well, or there could be a manual indentation-fixing button.&amp;nbsp; But this is just the cherry on top and should not hold back progress either.&amp;nbsp; This is because it's reasonable to hold users responsible for code they paste in, whereas Qlik is mostly responsible for the tab/space mess generated by their editor.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm not sure whether these behaviors vary depending on the browser, but I am using Chrome.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 15:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idi-p/1694167</guid>
      <dc:creator>mmarchese</dc:creator>
      <dc:date>2020-11-25T15:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Improve how the script editor handles indentation</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idc-p/1694329#M1790</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/37484"&gt;@mmarchese&lt;/a&gt;&amp;nbsp; - I completely agree with you. We really need to make an improvement here.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 06:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idc-p/1694329#M1790</guid>
      <dc:creator>John_Teichman</dc:creator>
      <dc:date>2020-04-17T06:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Improve how the script editor handles indentation - Status changed to: Open - Collecting Feedback</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idc-p/1695544#M1894</link>
      <description>&lt;P&gt;Thank you for your feedback on ways to improve our product. While this is something we understand would be useful, it's not on the short-term roadmap. Please continue to show your support for this idea.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 07:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idc-p/1695544#M1894</guid>
      <dc:creator>Patric_Nordstrom</dc:creator>
      <dc:date>2020-04-22T07:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Improve how the script editor handles indentation</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idc-p/1967990#M10176</link>
      <description>&lt;P&gt;2 years ago.&amp;nbsp; Still not fixed.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 00:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idc-p/1967990#M10176</guid>
      <dc:creator>DF_DB</dc:creator>
      <dc:date>2022-08-12T00:49:23Z</dc:date>
    </item>
    <item>
      <title>From now on, please track this idea from the Ideation por...</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idc-p/2100499#M13758</link>
      <description>&lt;P&gt;From now on, please track this idea from the Ideation portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A title="Link to new idea" href="https://ideation.qlik.com/app/#/case/274653" target="_blank" rel="noopener"&gt;Link to new idea&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Meghann&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;EM&gt;NOTE: Upon clicking this link 2 tabs may open - please feel free to close the one with a login page. If you &lt;STRONG&gt;only&lt;/STRONG&gt; see 1 tab with the login page, please try clicking this link first: &lt;STRONG&gt;&lt;A title="Authenticate me!" href="#" target="_blank" rel="noopener"&gt;Authenticate me!&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;t&lt;/EM&gt;&lt;EM&gt;hen try the link above again. Ensure pop-up blocker is off.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idc-p/2100499#M13758</guid>
      <dc:creator>Meghann_MacDonald</dc:creator>
      <dc:date>2023-08-02T15:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Improve how the script editor handles indentation - Status changed to: Closed - Archived</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idc-p/2100500#M13759</link>
      <description />
      <pubDate>Wed, 02 Aug 2023 15:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Improve-how-the-script-editor-handles-indentation/idc-p/2100500#M13759</guid>
      <dc:creator>Ideation</dc:creator>
      <dc:date>2023-08-02T15:37:28Z</dc:date>
    </item>
  </channel>
</rss>

