visual-studio-codecodenameone

Codename One use with VSCode


Is there any way to use CN1 with VSCode? I find the IDE increasingly more beautiful, editable, usable and lightweight.

If not, are there any plans?


Solution

  • We don't have any plans at this time to support VSCode (used it myself for some non-Java code and I personally don't share your enthusiasm for it). If it supports Ant projects you can just open any Codename One project with it and use it.

    All Codename One projects are ant projects that include targets for sending a build to any platform. The simulator etc. are all in the JavaSE.jar. You can look at the configuration for that in the properties file of the project.

    EDIT: You compile a Codename One app for the simulator by invoking ant jar. You can then run the resulting jar using

    java -classpath lib/CLDC11.jar:lib/CodenameOne.jar:lib/CodenameOne_SRC.zip:lib/impl/cls:lib/impl/stubs:JavaSE.jar:native/internal_tmp:YOUR_JAR_NAME_HERE com.codename1.impl.javase.Simulator