Github Copilot

https://www.youtube.com/watch?v=IP_zm1EWiP8

Open Solar2D simulator within terminal, select a Solar2D folder which contains main.lua

open -a "Corona Simulator" main.lua

or use Run Terminal Command

You can create a symbolic link from /Applications/Corona/SampleCode to your @workspace/kwik-editor-proj using the ln -s command. A sample code in the folder is used for reference in copilot editing. Create the symbolic, open your Terminal and run:

ln -s /Applications/Corona/SampleCode ../
  1. Run a kwik project in Solar2D,

    App/{Book}/compoents/{PAGE}/ballon_mask.lua, ballon layer has been repalced for a mask layer in kwik editor

  2. select a layer/class, right-click to select “In vscode” in the context menu

  3. Select it to Copilot Edits, App/replacement/components/mask/layers/balloon_mask.lua will be selected

  4. Next to use a sample source in CoronaSampleCode as guide, so open Graphics/Flashlight/main.lua

    and, add it in Copilot Edits

  5. this is a simple propmpt

    modify M:didSHow function in ballon_mask.lua to make a obj.group animate randomly
    to new position smotthly, referencing how to move it in main.lua
  6. Accept it to finish editing.