简体   繁体   English

如何在 vscode 中配置 JSF 项目?

[英]How do I configure JSF Project in vscode?

I am trying to setup things for JSF Project in VSCode but I dont know how to do it, 'coz wherever I check there are Maven(something) specific configurations and I am new to JAVA so I dont even know what the Maven is.我正在尝试在 VSCode 中为 JSF 项目设置一些东西,但我不知道该怎么做,因为无论我在哪里检查都有 Maven(某些东西)特定的配置,而且我是 JAVA 的新手,所以我什至不知道 Maven 是什么。 Although I have successfully setup JSP Project in VSCode.虽然我已经在 VSCode 中成功设置了 JSP 项目。 So, I just think there must be a way to work with JSF as well in VSCode.所以,我只是认为必须有一种方法可以在 VSCode 中使用 JSF。 Can somebody help me with this?有人可以帮我吗?

Looks like it has no related extension of JSF in the VSCode for now.看起来它目前在 VSCode 中没有 JSF 的相关扩展。

There is already an extension to meet your requirement, you can refer to this issue .已经有一个扩展可以满足你的要求,你可以参考这个问题

It's been a while since I've posted this question, and Someone has upvoted it.自从我发布这个问题以来已经有一段时间了,有人赞成它。 So, I would like to Post the Solution that worked for me.所以,我想发布对我有用的解决方案。

I just added javax.faces.jar file's path in CLASSPATH to Compile my application and also added that jar file inside of Apache's lib directory to run my application.我刚刚在 CLASSPATH 中添加了javax.faces.jar文件的路径来编译我的应用程序,还在 Apache 的 lib 目录中添加了 jar 文件来运行我的应用程序。 and that worked for me.这对我有用。 Also, for xhtml files you'll get built-in syntax highlighting but for Intellisense I think you'll have to find an extension.此外,对于xhtml文件,您将获得内置的语法突出显示,但对于 Intellisense,我认为您必须找到一个扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM