[request] IDE: normalize indentation according to preference settings when loading a script
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
Changed in sikuli: | |
status: | New → In Progress |
assignee: | nobody → RaiMan (raimund-hocke) |
tags: | added: editor |
Changed in sikuli: | |
importance: | Undecided → Medium |
Changed in sikuli: | |
importance: | Medium → Wishlist |
Changed in sikuli: | |
importance: | Wishlist → High |
milestone: | none → x1.1 |
Changed in sikuli: | |
milestone: | 1.1.0 → 1.2.0 |
Changed in sikuli: | |
importance: | High → Medium |
milestone: | 2.0.0 → 2.1.0 |