Can I get chrome-devtools to actually search all JS sources?

前端 未结 6 760
无人共我
无人共我 2020-12-22 17:38

I\'m having trouble with searching through JS files in chrome dev-tools, in the past the search activated by Ctrl+Shift+F always found what

6条回答
  •  被撕碎了的回忆
    2020-12-22 18:14

    Yeah, if you want to search within content sources which are scripts used by extensions and the internal browser API, you enable it in the Settings of DevTools and then from any panel in DevTools you can type Ctrl + Shift + F or (on Mac) Options + Command + F (⌥⌘F) to search across all sources, snippets, and files.

    Even more helpful to what you may be needing is to set up a Workspace in Settings cog which you can map to a local directory of files which will be available in the Sources file browser sidebar which will also be searchable with the above shortcut.

提交回复
热议问题