如何让IntelliJ IDEA显示目录? [英] How do I get IntelliJ IDEA to display directories?

查看:340
本文介绍了如何让IntelliJ IDEA显示目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用IntelliJ IDEA进行JavaScript编辑,到目前为止我喜欢它,但是我对新项目遇到了一个小问题。

I've been trying out IntelliJ IDEA for JavaScript editing, and I like it so far, but I'm having a small problem with a new project.

我似乎无法让IDEA在Project视图中显示项目目录中的目录。即使我手动添加目录,它也拒绝显示它。

I can't seem to be able to get IDEA to display the directories in the project directory in the Project view. Even if I manually add a directory, it refuses to display it.

我认为这可能与它尝试应用Java约定这一事实有关,但是当我导入了一个旧的Eclipse项目,它显示所有目录都很好。

I think this probably has something to do with the fact that it tries to apply Java conventions, but when I imported an old Eclipse project, it showed all directories just fine.

我是否必须使用Eclipse创建项目并在IDEA中导入以使目录可见,或者是还有其他一些技巧吗?

Do I have to use Eclipse to create projects and import in IDEA to get the directories visible, or is there some other trick?

我使用的是IDEA版本8.1.3,代码只是一堆简单的HTML和JavaScript文件,而不是任何类型的Java环境。

I am using IDEA version 8.1.3, and the code is just a plain bunch of HTML and JavaScript files, not in any kind of a Java environment.

推荐答案

看来我需要在项目中手动创建一个Java模块(File-> New Module)来实际看到正确的目录视图。我确实想知道为什么当我用项目创建它时它没有显示出来。

It appears I need to manually create a Java module (File->New Module) inside the project to actually see the "proper" directory view. I do wonder why it didn't show up when I created it with the project.

这篇关于如何让IntelliJ IDEA显示目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆