سؤال

Is it possible to restrict the file type extension for find usages?

For example, when performing find usages while using TypeScript it would be useful to only see usages found in *.ts files, the *.js files should be excluded:

هل كانت مفيدة؟

المحلول

You can use scopes here. In Settings/Scopes add a new scope with only .ts files included, then select your class, hit Ctrl+Alt+Shift+F7 (Edit | Find | Find usages settings) , select the scope above as a scope in 'Find Usages' dialog

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top