Hi all,
I was wondering if anyone knew of any keyboard shortcuts for the LC text editor. The 2 things I'd really like to be able to do is:
1) outdent a line of code. Sometimes I'll turn a line of code over or paste something in and it will be double indented.
2) move a line of code up or down in the document.
I know you can do stuff like this in other text editors like Sublime Text and Adobe's Edge Code. Normally its something like "command + [" to outdent, and I think "shift + command + up/down arrow" to move lines of code.
thanks, Henry
Any keyboard shortcuts for the text editor?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Any keyboard shortcuts for the text editor?
Hi Henry,
Do you mean the Script Editor?
If you do, I don't see a shortcut key for that (interesting).
But if in the Preferences > Script Editor there is a selection for Auto Format. If that selected all you have to do is hit Tab in the script and it will clear up the handler.
If you turn the Auto Format off then it behaves like a plain old text editor without special commands.
Simon
Do you mean the Script Editor?
If you do, I don't see a shortcut key for that (interesting).
But if in the Preferences > Script Editor there is a selection for Auto Format. If that selected all you have to do is hit Tab in the script and it will clear up the handler.
If you turn the Auto Format off then it behaves like a plain old text editor without special commands.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Any keyboard shortcuts for the text editor?
Yes, I did mean "Script" editor, not "text".Simon wrote:Do you mean the Script Editor?
That totally worked for fixing the indents. I did have Auto Format on by default, but didn't know the tab key would fix everything. It also indents entire chunks of code so its a little neater looking. Your cursor just has to be anywhere in the chunk of code. I still can't find a key command for moving lines up and down, but I did find "shift + command + left/right arrow" selects and entire line. From there I guess you can just cut the line and paste it somewhere else.Simon wrote:But if in the Preferences > Script Editor there is a selection for Auto Format. If that selected all you have to do is hit Tab in the script and it will clear up the handler.
thanks!
-
- VIP Livecode Opensource Backer
- Posts: 7258
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Any keyboard shortcuts for the text editor?
To move text around, double-click words or triple-click lines and then drag them where you want them. Or you can select whole blocks of text and drag them all.
When you triple-click a line, the carriage return is also selected, so drop it at the left of a line that should come after the newly inserted one.
When you triple-click a line, the carriage return is also selected, so drop it at the left of a line that should come after the newly inserted one.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com