[request] IDE: normalize indentation according to preference settings when loading a script

Bug #877200 reported by RaiMan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

This request is based on the linked question.

**** problem description / workaround

-indentation tabs are not handled at the time a script is loaded into the IDE, only when editing a script in the IDE. Or more generally: when loading a script, indentation is not normalized according to the current settings in the IDE's preferences.

- So you might come up, with a situation, that a loaded script does not conform to the current tab settings and things get messed up, when you start editing.

- A workaround would be, to change all tabs to the required spaces in a capable editor directly in the .py files with search-and-replace before loading the script into the IDE

----------------------------------------------------------------------

So when loading a script, the user should get a warning, when the script's indentation does not conform to the current settings.

Options to be implemented and presented together with the warning:
- change preferences according to script's situation
- change script's indentation according to the preferences
- switch off indentation support for this script

Tags: editor
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
assignee: nobody → RaiMan (raimund-hocke)
RaiMan (raimund-hocke)
tags: added: editor
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Undecided → Medium
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Medium → Wishlist
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Wishlist → High
milestone: none → x1.1
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 1.1.0 → 1.2.0
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Medium
milestone: 2.0.0 → 2.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.