简体   繁体   English

如何从 Visual Studio 终端中删除组件?

[英]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.

相关问题 从 windows 上的 ubuntu bash 终端打开 Visual Studio(不是 Visual Studio 代码) - Open Visual Studio (Not Visual Studio Code) from the ubuntu bash terminal on windows Visual Studio Code:如何强制“终端”实际显示远程终端本身 - Visual Studio Code: How to force the "terminal" to actually display the remote terminal itself Visual Studio Code 在终端中运行代码 - Visual Studio Code run code in the terminal 如何从 Linux 终端使用正则表达式删除文件夹 - How do I delete folders using regex from Linux terminal 如何从linux终端删除日志文件的内容? - How to delete content of a log file from linux terminal? 如何从 Windows(和 Linux)上的终端启动 Android Studio? - How to launch Android Studio from terminal on Windows (and Linux)? Mint Linux Visual Studio 终端无法运行命令 - Mint Linux Visual Studio terminal cant run commands 来自Android Studio和终端的adb不能同时使用 - adb from Android Studio and terminal are not usable simultanously 如何从 Visual Studio 在 Linux 上部署 Azure Function 应用程序 - How to deploy Azure Function App on Linux from Visual Studio 如何在Visual Studio 2010中从Linux进行远程编译和调试 - How to remotely compile and debug in Linux from within Visual Studio 2010
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM