NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Indenting selected block of code with tab


Joined: 23 Nov 2006
Posts: 48
Location: Netherlands
Reply with quote
it seems that multiple line select and [TAB] no longer works on the complete selection

it now only works at the cursor and no longer on the complete selection

bug or setting?

_________________
MV
View user's profileFind all posts by MacVatoSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
it works if you turn Smart Tab option on.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 23 Nov 2006
Posts: 48
Location: Netherlands
Reply with quote
Thnx i say, a bit ashamed

_________________
MV
View user's profileFind all posts by MacVatoSend private messageVisit poster's website
The new behaviour is no good
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
dmitri wrote:
it works if you turn Smart Tab option on.
It used to work fine in 5.1 with Smart Tab disabled Confused I do not like using Smart Tab because it does not indent the way I want it to. Please consider making the block indent with Tab (or Ctrl+I or any other shortcut) work irrespective the Smart Tab setting -- a user should be able to block indent and outdent at any time.

PS: The changelog for build 5210 mentions this, but not in a way that I can understand what you intended to fix or improve. This is not a well constructed sentence. Dmitri, could you please clarify what is meant by the following:
Quote:
0002056: [Bug report] Indent / Unindent with tab/shft-tab keys show work only if Smart Tab option is on

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
See Indent/Unindent Block commands, feel free to change shortcut for them. By default they are bound to Ctrl+K,I, Ctrl+K,O

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
Maybe I was not clear in my explanation. I am referring to using Tab and Ctrl+I for indent, and Shift+Tab for outdent. Previously these worked fine on when I had a few lines selected. Now it does not work any more when the Smart Tabs setting is disabled -- instead of indenting or outdenting the selected lines, it works on the next line (after the selection) Confused With Smart Tabs enabled, it works as it should. I feel its should work regardless the Smart Tab setting.


Last edited by anno on Sat Nov 03, 2007 2:01 pm; edited 1 time in total

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Seems you just did not try. Otherwise you'd noted that the shortcuts I mentioned (namely Ctrl+K, I and Ctrl+K, O) are working fine and they work regardless if Smart Tabs option.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
Sorry Dmitri, I was editing my previous post to make my explanation more clear. And at the same time you were posting a response too Very Happy My comment is about using Tab, Ctrl+I and Shift+Tab, not the Ctrl+K commands.

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
why not to bind Tab and Ctrl-I to those commands instead of what they are bound to now?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
That did not occur to me! I have tried it and it works fine. Thank you Very Happy

I still think making the behaviour of the Indent and Outdent settings (under Editing commands) depended on Smart Tabs is a bad idea Sad

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website


Joined: 21 Oct 2004
Posts: 81
Location: UK
Reply with quote
If I set Tab to indent block, I can't use tab within a line, like to space parameters, as it indents the entire line.

I agree with anno, I don't know why you 'fixed' this.
View user's profileFind all posts by QuboidSend private message
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
The problem appears fixed in build 5213. Thank you very much NuSphere! Very Happy

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website
[resolved] Indenting selected block of code with tab
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
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic