Folding long strings |
|
Simply select the text you wish to fold, then click the [-] button in the gutter.
|
||||||||||||
|
|
Thank you, but of cause I know about folding the selected text The problem is that it takes some time to select whole text (sometimes SQL requests take up to two screens on 1600x1200 resolution) and I should do it every time I have modified it. So that is why I have required this feature. I think it is not difficult to add it once and save hours of developers time (as well as "switch case", now I have habituating myself to add extra {} as I was suggested, but that is not too much comfortable) |
||||||||||||||
|
|
As the other way I can suggest you to add shortcut for full string selecting where cursor is. So in this case developer will use this with combination of code folding shortcut to fold full string quickly I think this should be easier to realize.
|
||||||||||||
|
Guru master
|
I don't want to sound like a know-all, but I personally find strings that exceed screen width a very bad programming practice. In general I try to keep my code-lines to a maximum of 132 characters. Is there any reason you aren't using HEREDOC to split the queries over multiple lines? Besides it being easier to detect errors and find the correct spot to modify them a lot faster, it also involves a lot less scrolling As for the "selecting the whole text", you know you can use Shift+End to select until the end of the line, right? |
||||||||||||||
|
Site Admin
|
I'm not sure if I have something special turned on in 5.2 5220 that I'm running, but it shows [+] and therefore lets me fold multi-line strings even with no selection.
|
||||||||||||
_________________ The PHP IDE team |
Guru master
|
Is that your special way of telling us you sneakily added that functionality in the last build or was it already there and I just looked over it? |
||||||||||||||
|
Site Admin
|
I'm not sure what build introduced this change. It definitely works this way in 5.2 5220 and did not work this way in 5.0 (may be I'm wrong with last statement).
|
||||||||||||
_________________ The PHP IDE team |
|
Nice! |
||||||||||||||
|
|
Thank you very much I will update PhpED today
Thank you for good suggestion. Of cause there is To be honest I do not remember what was the reason why I am not using it any more but when I started to use it I came across with problems and restrictions, so I move back to simple double quotation marks. I will try to remember what kind of problem I came across and post it here.
For sure and ctrl+shift+end for until the end of the document but in my case I have more than one line so I have to move down with holding shift key down ... anyway based on Dmitri's words that feature was fulfilled in 5220 release Once again thank you all for you time and help |
||||||||||||||||||
|
Folding long strings |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by