Megaxela / QCodeEditor

Qt Code Editor widget.
MIT License
383 stars 118 forks source link

Feature request: Improve Auto-indentation #8

Closed coder3101 closed 4 years ago

coder3101 commented 4 years ago

The current auto indent feature only places the cursor back to last line's beginning. Like this:

Assume * represents a space or tab and | represents cursor

int main(){ | }

As you can see the cursor starts back from beginning. Expected should be:

int main(){ **** | }

Such auto indentation should make the end-user less focus on rearranging the brackets and focus more on typing.