Red Gate forums :: View topic - Line Return Indentation Issue
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Prompt Previous Versions
SQL Prompt Previous Versions forum

Line Return Indentation Issue

Search in SQL Prompt Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
MBBW



Joined: 08 Mar 2011
Posts: 12

PostPosted: Tue Mar 08, 2011 1:45 pm    Post subject: Line Return Indentation Issue Reply with quote

Hello,

using SSMS 2008 R2, I had to upgrade from SQL Prompt 3.1 to SQL Prompt 3.9.0.43 and now I have the indenting bug on starting a new line described in the SQL Prompt 4.0 forum:

http://www.red-gate.com/messageboard/viewtopic.php?p=33988

Didn't you fix this bug in the latest SQL Prompt 3 version?

Thanks
Back to top
View user's profile Send private message
Anu Deshpande



Joined: 20 Apr 2009
Posts: 684
Location: Cambridge

PostPosted: Wed Mar 09, 2011 3:50 pm    Post subject: Reply with quote

Many thanks for your post and apologies for inconvenience caused.

This issue was addressed in SQL Prompt 4.

Can you kindly let me know an example explaining the issue that you have in 3.9?
_________________
Anuradha Deshpande
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com
Back to top
View user's profile Send private message Send e-mail
MBBW



Joined: 08 Mar 2011
Posts: 12

PostPosted: Wed Mar 09, 2011 6:05 pm    Post subject: Reply with quote

First, I am sorry but I wanted to refer to this topic and not the one linked in my first post.
http://www.red-gate.com/messageboard/viewtopic.php?t=9691

In SQL Prompt 3.1 the default behaviour (in my reminiscence) was that the cursor always started at the first position in the new line independent of the indention of the line above. With SQL Prompt 3.9 each new line starts at the position the level above is indented.

There is no difference whether I enable or disable this setting:
Inserted Candidates -> Formatting -> Insert new line at current indentation level

If I disable SQL Prompt I do not have this block formatting behaviour.

Example:
In the query below, when I press the return key after FROM the next line is automatically indented at the same level as the line above. But I want the cursor position at the first position of the next line.

Code:

SELECT *
   FROM
   | <-- cursor position
   

-- I need this behaviour:
SELECT *
   FROM
| <-- cursor position
Back to top
View user's profile Send private message
Anu Deshpande



Joined: 20 Apr 2009
Posts: 684
Location: Cambridge

PostPosted: Mon Mar 14, 2011 2:28 pm    Post subject: Reply with quote

Many thanks for your reply.

This issue is not yet fixed and it is logged in our internal tracking system whose tracking Id as per the post is SP-2836.

I will update this post as soon as it is fixed.
_________________
Anuradha Deshpande
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group