查找使用 const 样式的项目
Find usages const styled project
如何从样式组件文件中搜索我的项目中未使用的常量?
export const Page(not usage) = styled(Container)`
flex: 1;
flex-direction: column;
justify-content: space-between;
padding-left: 16;
padding-right: 16;
background: ${colors.theme};
`;
可以在visual studio代码或intellij
_______________________________________________________
已更新
我的style.js
// Not being exported vscode will detect
const Component = styled.View`
flex: 1;
flex-direction: column;
`;
export default {
Component,
}
我的page.js
import Style from './Style';
<Style.Component> </Style.Component>
这只是我的建议。如果您单独管理您的样式文件并调用它并使用它,
从整体上回忆样式这会软化 Visual Studio 代码中未使用的样式。
例子
IDEA 将 const 报告为未使用,除非它被导入到其他模块中:
如何从样式组件文件中搜索我的项目中未使用的常量?
export const Page(not usage) = styled(Container)`
flex: 1;
flex-direction: column;
justify-content: space-between;
padding-left: 16;
padding-right: 16;
background: ${colors.theme};
`;
可以在visual studio代码或intellij _______________________________________________________
已更新
我的style.js
// Not being exported vscode will detect
const Component = styled.View`
flex: 1;
flex-direction: column;
`;
export default {
Component,
}
我的page.js
import Style from './Style';
<Style.Component> </Style.Component>
这只是我的建议。如果您单独管理您的样式文件并调用它并使用它,
从整体上回忆样式这会软化 Visual Studio 代码中未使用的样式。
例子
IDEA 将 const 报告为未使用,除非它被导入到其他模块中: