简体   繁体   English

根据类名称自动填充导入路径

[英]Auto populate import path based on class name

I am using Visual Studio with my angular 2 application, is there a way to auto populate the import path, just like with C# using statements and 'ctrl .' 我将Visual Studio与我的angular 2应用程序一起使用,有没有一种方法可以自动填充导入路径,就像使用C#使用语句和'ctrl'一样。 key combination. 组合键。 I find typing the imports too repetitive and misspelling is often a problem, it definitely slow me down. 我发现输入的输入内容过于重复,拼写错误通常是个问题,这肯定会使我慢下来。

Are you referring to Visual Studio 2015/2017 or VS Code? 您是指Visual Studio 2015/2017还是VS Code? The current version of VS Code provides the lightbulb icon to complete the import statements for you just like with C# in VS 2015/2017. 当前版本的VS Code提供的灯泡图标可以为您完成导入语句,就像VS 2015/2017中的C#一样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM