簡體   English   中英

為 node.js 配置 sublime text 3 文件夾 node_modules

[英]Configure sublime text 3 folder node_modules for node.js

我需要側欄中的 node_modules 但在搜索文件時不需要,“轉到文件”。

如果我使用

{
  "folder_exclude_patterns": [ "node_modules"]
}

除了側邊欄,它工作正常。

Sublime text -> Preferences -> Settings-> 打開一個新窗口,左邊是所有程序設置,右邊是你的用戶設置。 您將在 {} 括號之間添加此行 -

"binary_file_patterns": [".svn/", ".git/", "node_modules/", "bower_components/"]

您需要此設置binary_file_pattern

    // These files will still show up in the side bar, but won't be included in
    // Goto Anything or Find in Files
    "binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],

您還可以使用:

// index_exclude_patterns indicate which files won't be indexed.
"index_exclude_patterns": ["*.log"],

它將顯示在側邊欄中,但從任何索引中刪除它。

你也可以試試這個插件: https : //github.com/titoBouzout/SideBarFolders

對於某些用戶..(我:P),ST 項目系統太多了.. 我只想能夠在不保存或跟蹤項目文件的情況下切換文件夾,並保持 Tabs 完好無損.. 好吧,這個包就是這樣做的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM