[英]Language level inconsistency between Android Studio and WebStorm
Currently working with Google Backend APIs again and I tend to switch between Android Studio and WebStorm for proper syntax in both Java and HTML. 目前,我再次使用Google Backend API,并且我倾向于在Android Studio和WebStorm之间切换以获取Java和HTML的正确语法。
This works flawlessly, except for one thing. 除了一件事,这完美无瑕。 Each time I even look at the code through any of the mentioned programs, the modules language level is changed.
每当我什至通过上述任何程序查看代码时,模块语言级别都会更改。
WebStorm changes it to 1.3, whereas Im working with 7 in Android Studio. WebStorm将其更改为1.3,而Im在Android Studio中使用7。
My question is as follows. 我的问题如下。 Is it possible to either set the language level to be identical in both programs, or let it work with whatever language has been set?
是否可以在两个程序中将语言级别设置为相同,或者使其与已设置的任何语言一起工作? I dont want it to switch language level unless I specifically ask it to.
除非我特别要求,否则我不希望它切换语言级别。
Thank you! 谢谢!
Are you opening the same project in both programs? 您是否在两个程序中都打开了相同的项目? If so then you should not be doing that.
如果是这样,那么您不应该这样做。
WebStorm only supports one type of possible modules ( WebModule
) and does not know anything about JavaModule
(or whatever it is) that Android Studio is using and therefore may drop/reset properties for such unknown modules. WebStorm仅支持一种可能的模块类型(
WebModule
),并且不了解Android Studio使用的有关JavaModule
任何信息(或其任何信息),因此可能会删除/重置此类未知模块的属性。
Your option is to create separate projects (possibly by rearranging your code a bit) so that actual projects do not intersect (I mean -- project settings which are stored in .idea
subfolder -- that's how IDE recognizes projects): 您的选择是创建单独的项目 (可能通过稍微重新排列代码),以使实际的项目不相交(我的意思是-存储在
.idea
子文件夹中的项目设置-这就是IDE识别项目的方式):
PS Yes -- separate projects mean that you will need to configure certain things twice in both projects. PS是的-单独的项目意味着您将需要在两个项目中两次配置某些特定的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.