Re: Favorite tricks and keystrokes: Please take one and leave one

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Favorite tricks and keystrokes: Please take one and leave one

4D Tech mailing list

> On May 27, 2017, at 10:05 AM, David Adams wrote:
>
> You can break a single line of code into multiple lines to simplify reading
> and editing using the / character.

Except it’s “\” not “/“ - backslash not forward-slash.

Mine - I think it may be Mac only:

3-finger salute to go to design mode from anywhere:

Ctrl-Option-CMD - Hold and click, release the keys and click on the line “Go to Design”

JJ

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|

Re: Favorite tricks and keystrokes: Please take one and leave one

4D Tech mailing list
Here are a few of mine:

- Debugger: in the method you are debugging, you can right click on any line of code and select "Run to cursor" -- easier than setting a breakpoint.

- Debugger: Execute commands, not just evaluate expressions. One very useful one -- type SET TEXT TO PASTEBOARD (Json stringify($oObject)) to get an object's text into the clipboard (and then on to http://json.parser.online.fr <http://json.parser.online.fr/>... super useful web site for examining objects).

- Find in design: In the Find Results window, you can click on the gear icon and select "Replace in content"... you can replace your find string with something else -- super easy to do bulk replacements in the code such as creating a wrapper.

- Explorer: Right click on a method and select Rename. It will rename all occurrences of that method in the code (except when referenced as a string parameter, i.e. in an EXECUTE FORMULA or New Process).
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************