Bug #70138 New-line auto-indent
Submitted: 23 Aug 2013 14:25 Modified: 25 Aug 2014 18:45
Reporter: Piotr Opiola Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:6.0.6 OS:Any
Assigned to: CPU Architecture:Any
Tags: indent

[23 Aug 2013 14:25] Piotr Opiola
Description:
If I go to a new line in SQL Editor, it should keep the indentation from the previous line. This is a basic feature of all programming editors. It used to work correctly in Workbench, but stopped at some point (5.0.2 I think). Now it always moves to the beginning of a line. This is really irritating when writing a stored procedure because I have to hit the tab key every single time I go to a new line. Please bring the "new-line auto-indent" functionality back. 

How to repeat:
In the SQL Editor, make an indent and go to a new line -> it starts at the beginning of the line.
[23 Aug 2013 15:21] MySQL Verification Team
Thank you for the bug report.
[22 Aug 2014 15:48] Armando Lopez Valencia
Posted by developer:
 
*FIXED*
*verified in:*
Windows 7x64
Ubuntu 14.04x64
MySQL Server 5.6
WB 6.2.2.12203
Indentation is now respected in SQL Editor, triggers, scripts(Model), pretty much wherever where code can entered.
[25 Aug 2014 18:45] Philip Olson
Fixed as of the upcoming MySQL Workbench 6.2.2 release, and here's the changelog entry:

Indentation is now respected in the SQL and code editors, when before the
current indention level would be forgotten. New lines now start at the
previous indention level.

Thank you for the bug report.