Autocompletion on project.xml

There is now an xsd file to make autocompletion available in the project.xml.

You can add the autocompletion by adding the xmlns links to the project main tag:

<?xml version="1.0" encoding="utf-8"?>
<project
    xmlns="http://lime.openfl.org/project/1.0.4"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://lime.openfl.org/project/1.0.4 http://lime.openfl.org/xsd/project-1.0.4.xsd">
</project>

You have to use an IDE that is compatible with xml completion like VSCode with the XML (Red Hat) extension.

projectcompletion

I’ll be glad to know if it works for you.

3 Likes

I can’t seem to get the download to save the .xsd file.

Do you have a problem only when trying to download it by clicking on the link? Does the autocompletion work?

No, that is basically why I responded, I can see the definition in a browser when I click the link.

Does the autocompletion work?

No, since the file isn’t being saved, I understand the problem, just I don’t understand why the VSCode filesystem is not saving it thorough the Red Hat extension.

I have XML 0.15.0 and VSCode 1.53.2.

If you have the same version maybe you can try to download manually the lime xsd and save it where it should be (see your image to have the path).

Yup, copied to;

C:\Users\Mike\.lemminx\cache\http\lime.software\xsd\project-1.0.0.xsd

Restarted and have full xml completion. :slight_smile:

Here is a detail on another issue and how to fix. Hope it can help.