在已配置 PHP 的 PhpStorm 中创建 Vanila HTML/JS 项目 [英] Create Vanila HTML / JS project inside PhpStorm where PHP has already been configured

查看:63
本文介绍了在已配置 PHP 的 PhpStorm 中创建 Vanila HTML/JS 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每天都将 Storm 用于 PHP/Laravel,因此配置了 PHP.当我想创建一个普通的 HTML/JS 侧项目时,Storm 会自行添加 PHP 库而无需询问.我不想要任何 PHP 库.最初创建项目时,我使用了空项目".

I use Storm daily for PHP/Laravel, and hence have PHP configured. When I want to create a vanilla HTML / JS side project, Storm takes it upon itself to add the PHP libraries without asking. I don't want any PHP Libraries. When initially creating the project, I used "empty project".

这是一个屏幕截图来说明.

Here is a screen shot to illustrate.

那么,如何创建一个没有 PHP 库的空项目?

So, how to create an empty project without PHP libraries?

推荐答案

您正在使用 PhpStorm,这是一个支持 PHP 的 IDE.您看到的那个条目有一个 PHP 存根列表(IDE 了解核心 PHP 和其他常见扩展:类/函数/常量等).

You are using PhpStorm, an IDE that supports PHP. That entry that you see there is a list of stubs for PHP (the stuff that IDE knows about core PHP and other common extensions: classes/functions/constants etc).

AFAIK 它始终存在(因为它是面向 PHP 的 IDE)并且您无法删除它.但是你试试这个:

AFAIK it always will be there (as it's a PHP oriented IDE) and you cannot remove it. But you try this:

  • 设置(macOS 上的首选项)
  • 语言&框架 |PHP
  • PHP 运行时 标签
  • 取消选中那里的所有条目.

如果上面的内容不能摆脱整个节点,那么您将不得不忽略该条目.而且我认为在这里使用它没有任何问题:它不会以任何方式影响您的 JS/HTML.

If the above will not get rid of the whole node then you will have to ignore that entry. And I do not see any problems in having it here: it will not affect your JS/HTML in any way.

P.S. 可以在 File | 中配置默认​​/新项目中的任何内容.新项目设置 |新项目的设置...

这篇关于在已配置 PHP 的 PhpStorm 中创建 Vanila HTML/JS 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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