[英]How to delete a Component from Visual studio terminal?
I created Reactjs project and In a hurry I created a folder and named it as Background.我创建了 Reactjs 项目,并匆忙创建了一个文件夹并将其命名为背景。 In Background folder I have two files, first file name it Background.js and second file name is Background.css.
在后台文件夹中,我有两个文件,第一个文件名为 Background.js,第二个文件名为 Background.css。 Now the problem is I am not going to use that Component so I am trying to delete it.
现在的问题是我不会使用该组件,所以我试图删除它。 I tried to delete it but it is showing, The window is no longer responding You can reopen or close the window or keep waiting.
我试图删除它,但它显示,window 不再响应您可以重新打开或关闭 window 或继续等待。 My laptop configuration is very less I think that's why it is showing like this.
我的笔记本电脑配置非常少,我认为这就是它显示这样的原因。 So anyone please tell me how to delete Background folder along with Background.js and Background.css files from visual studion terminal.
所以任何人请告诉我如何从visual studion终端删除Background文件夹以及Background.js和Background.css文件。 It will help me a lot thank you, If I am not clear with my doubt please put a comment.
这对我很有帮助,谢谢,如果我不清楚我的疑问,请发表评论。
If I am trying to delete Background folder it is showing like this The window is no longer responding You can reopen or close the window or keep waiting.如果我试图删除背景文件夹,它显示如下 window 不再响应您可以重新打开或关闭 window 或继续等待。
it actually depends on your operating system.它实际上取决于您的操作系统。 with *Nix (Linux, Unix) based OS you can use:
使用基于 *Nix (Linux, Unix) 的操作系统,您可以使用:
cd ~/path/to/your/folder
# to delete any files with the name starting with Background:
rm ./path/to/files/Background.*
# to delete the whole folder:
rm -rf ./path/to/folder
on windows:在 windows 上:
# to delete the whole folder:
rmdir /s <complete path of folder suppose>
# to delete the files:
cd <to your folder>
del Background*
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.