简体   繁体   English

Intellij理念中同一项目中的多种语言

[英]multiple languages in the same project in Intellij idea

In intellij IDEA, I am working with Java & ActionScript in the same project. 在intellij IDEA中,我在同一个项目中使用Java和ActionScript。 The Java SDK is the default of the project. Java SDK是项目的默认设置。 When I want to program in ActionScript, several classes are not available (eg. String). 当我想在ActionScript中编程时,几个类不可用(例如String)。 The former point happens because the project is not using the ActionScript SDK, I guess. 前一点是因为项目没有使用ActionScript SDK,我猜。 Then my question is: Is it to possible use multiple languages (two in this case) in the same IntelliJ IDEA project? 那么我的问题是:是否可以在同一个IntelliJ IDEA项目中使用多种语言(在本例中为两种语言)? If the answer is "Yes", then How can I do? 如果答案是“是”,那我该怎么办?

Thanks in advance 提前致谢

If your ActionScript classes are in a separate module, you can change the SDK which is used for that module in Project Settings > Modules > yourModule > Dependencies tab > Module SDK . 如果ActionScript类位于单独的模块中,则可以在“ Project Settings > Modules > yourModule > Dependencies tab > Module SDK更改用于该Project Settings > Modules > yourModule > Dependencies tab > Module SDK

Of course, you don't have to change the SDK for your Java module (it will remain JDK xyz). 当然,您不必更改Java模块的SDK(它将保留JDK xyz)。

Am not sure if this is what you are looking for, still give it a try. 我不确定这是不是你想要的,还是试一试。

http://www.jetbrains.com/mps/concepts/index.html http://www.jetbrains.com/mps/concepts/index.html

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

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