![](/img/trans.png)
[英]Open Visual Studio (Not Visual Studio Code) from the ubuntu bash terminal on windows
[英]How to delete a Component from Visual studio terminal?
我創建了 Reactjs 項目,並匆忙創建了一個文件夾並將其命名為背景。 在后台文件夾中,我有兩個文件,第一個文件名為 Background.js,第二個文件名為 Background.css。 現在的問題是我不會使用該組件,所以我試圖刪除它。 我試圖刪除它,但它顯示,window 不再響應您可以重新打開或關閉 window 或繼續等待。 我的筆記本電腦配置非常少,我認為這就是它顯示這樣的原因。 所以任何人請告訴我如何從visual studion終端刪除Background文件夾以及Background.js和Background.css文件。 這對我很有幫助,謝謝,如果我不清楚我的疑問,請發表評論。
如果我試圖刪除背景文件夾,它顯示如下 window 不再響應您可以重新打開或關閉 window 或繼續等待。
它實際上取決於您的操作系統。 使用基於 *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
在 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.