Codea Air CodeThis extension can connect remotely to the Codea iOS application, allowing to modify, tweak and debug Codea projects directly from Visual Studio Code. Auto-completion and documentation features similar to Codea are available while working on the projects. Table of ContentsFeaturesEditorOnce connected to Codea, Visual Studio Code will list all the projets availables with their files and dependencies, allowing modifications even if a project is running. ![]() Auto-CompletionAuto-completion is available for the Codea API as well as symbols defined in the project and its dependencies. Symbols![]() ColorsMethods such as ![]() Font and SpritesThe ![]() ![]() SnippetsSnippets make it easier to format the different Lua control structures such as ![]() DocumentationTypes can easily be documented using a triple-slash ( ![]() SidebarThe Codea Sidebar gives access to Reference and Parameters sections as shown below. ![]() ReferenceThe Codea Reference section of the Sidebar contains the full documentation for Codea which can be navigated by clicking on the different chapters and functions. It is also possible to select and right click a word in a project's code to find the corresponding reference in the documentation (or using the ![]() ![]() SearchThis extension uses a virtual File System Provider to read the files from Codea. However, VSCode does not yet support searching in files provided this way (see this issue). Until the feature is implemented, the extension provides its own limited version which will search in all files of the currently active project. ![]() ParametersThe second section of the Codea Sidebar will show the current parameters for the running project, if any. All parameters can be controlled directly from Visual Studio Code even if the parameters are hidden in Codea, making it easier to tweak the projects. ![]() DebuggerWith a project running, Visual Studio Code can be used to attach to the running project and then used for debugging. Some features such as modifying variables are not available yet but will be added in future updates of Codea and the extension. ![]() Conditional BreakpointsTo set a condition on a breakpoint, right click a breakpoint and select ![]() Enter a valid Lua expression which must be ![]() InstallationSearch for "Codea Air Code" in Visual Studio Code's Marketplace and install the extension. ![]() UsageConnectionAfter installing the extension, open the Command Palette (Ctrl+Shift+P on Windows, ⇧⌘P on Mac), and run the ![]() After typing Enter or clicking the command, Visual Studio Code will ask for Codea's IP: ![]() To find the device's IP to connect to, use the Air Code icon on the project selection screen in Codea. The default port is Fun Fact
Multi-windowAir Code does not currently support multiple Codea windows or running projects. For this reason, when running a project from Air Code, all windows will be closed except one before running the project. Files and DependenciesFiles can be added, removed or renamed in Codea using the corresponding operations in Visual Studio Code. Dependencies can be added to the active project (based on the current file being edited) using the To remove a dependency, simply delete its corresponding folder in the Explorer. CommandsAll commands included with this extension are prefixed with
RequirementsCodea 3.9 LicenseChange LogSee the change log here |