Find all `require`s or `import`s of a Node.js module in VSCode?
up vote
1
down vote
favorite
I have a Node.JS project in VSCode 1.29.1. I'd like to see all places where a module is required or imported. Is there a good way to do this, or an extension? When I click "find all references" on the symbol that's module.exported, it only lists references in that file.
As a workaround, I've been doing "find in project" with the regex search require(.*moduleName.*).
node.js visual-studio-code
add a comment |
up vote
1
down vote
favorite
I have a Node.JS project in VSCode 1.29.1. I'd like to see all places where a module is required or imported. Is there a good way to do this, or an extension? When I click "find all references" on the symbol that's module.exported, it only lists references in that file.
As a workaround, I've been doing "find in project" with the regex search require(.*moduleName.*).
node.js visual-studio-code
how about doing cmd + shift + f and then typing and searching it the lineconst whatever? Although I know this approach have many drawbacks but maybe a work around? Ps: I am also following this post.
– KuchBhi
Nov 21 at 22:07
Yep, that's another thing I try! But sometimes this codebase names imports inconsistently. :)
– Nick Heiner
Nov 21 at 22:25
I doubt, there is no other solution (yet). A few days ago, I posted exactly this- no answer yet. stackoverflow.com/questions/53267307/… .
– ford04
Nov 22 at 12:04
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a Node.JS project in VSCode 1.29.1. I'd like to see all places where a module is required or imported. Is there a good way to do this, or an extension? When I click "find all references" on the symbol that's module.exported, it only lists references in that file.
As a workaround, I've been doing "find in project" with the regex search require(.*moduleName.*).
node.js visual-studio-code
I have a Node.JS project in VSCode 1.29.1. I'd like to see all places where a module is required or imported. Is there a good way to do this, or an extension? When I click "find all references" on the symbol that's module.exported, it only lists references in that file.
As a workaround, I've been doing "find in project" with the regex search require(.*moduleName.*).
node.js visual-studio-code
node.js visual-studio-code
asked Nov 21 at 22:00
Nick Heiner
46.3k159418661
46.3k159418661
how about doing cmd + shift + f and then typing and searching it the lineconst whatever? Although I know this approach have many drawbacks but maybe a work around? Ps: I am also following this post.
– KuchBhi
Nov 21 at 22:07
Yep, that's another thing I try! But sometimes this codebase names imports inconsistently. :)
– Nick Heiner
Nov 21 at 22:25
I doubt, there is no other solution (yet). A few days ago, I posted exactly this- no answer yet. stackoverflow.com/questions/53267307/… .
– ford04
Nov 22 at 12:04
add a comment |
how about doing cmd + shift + f and then typing and searching it the lineconst whatever? Although I know this approach have many drawbacks but maybe a work around? Ps: I am also following this post.
– KuchBhi
Nov 21 at 22:07
Yep, that's another thing I try! But sometimes this codebase names imports inconsistently. :)
– Nick Heiner
Nov 21 at 22:25
I doubt, there is no other solution (yet). A few days ago, I posted exactly this- no answer yet. stackoverflow.com/questions/53267307/… .
– ford04
Nov 22 at 12:04
how about doing cmd + shift + f and then typing and searching it the line
const whatever ? Although I know this approach have many drawbacks but maybe a work around? Ps: I am also following this post.– KuchBhi
Nov 21 at 22:07
how about doing cmd + shift + f and then typing and searching it the line
const whatever ? Although I know this approach have many drawbacks but maybe a work around? Ps: I am also following this post.– KuchBhi
Nov 21 at 22:07
Yep, that's another thing I try! But sometimes this codebase names imports inconsistently. :)
– Nick Heiner
Nov 21 at 22:25
Yep, that's another thing I try! But sometimes this codebase names imports inconsistently. :)
– Nick Heiner
Nov 21 at 22:25
I doubt, there is no other solution (yet). A few days ago, I posted exactly this- no answer yet. stackoverflow.com/questions/53267307/… .
– ford04
Nov 22 at 12:04
I doubt, there is no other solution (yet). A few days ago, I posted exactly this- no answer yet. stackoverflow.com/questions/53267307/… .
– ford04
Nov 22 at 12:04
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53421054%2ffind-all-requires-or-imports-of-a-node-js-module-in-vscode%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
how about doing cmd + shift + f and then typing and searching it the line
const whatever? Although I know this approach have many drawbacks but maybe a work around? Ps: I am also following this post.– KuchBhi
Nov 21 at 22:07
Yep, that's another thing I try! But sometimes this codebase names imports inconsistently. :)
– Nick Heiner
Nov 21 at 22:25
I doubt, there is no other solution (yet). A few days ago, I posted exactly this- no answer yet. stackoverflow.com/questions/53267307/… .
– ford04
Nov 22 at 12:04