[英]Visual Studio 2019 - Use PowerShell to open files instead of Solution Explorer
I'm looking to use PowerShell as an alternative to Solution Explorer. 我正在寻找将PowerShell用作解决方案资源管理器的替代方案。
For example, you can open a file in VS Code by running this command (assuming the .exe
is in the $PATH
variable): 例如,您可以通过运行以下命令在VS Code中打开文件(假设.exe
位于$PATH
变量中):
ps>code C:\repo\path\to\file.cs
It would be nice if could do the same with Visual Studio: 如果可以使用Visual Studio进行相同的操作,那就太好了:
ps>vs C:\repo\path\to\file.cs
And for those of you asking why , I truly believe this is a faster way. 对于那些问为什么的人 ,我真的相信这是一种更快的方法。 Especially since Ctrl
+ ,
doesn't do well with something like index.cshtml
特别是由于Ctrl
+ ,
对index.cshtml
东西效果index.cshtml
Do you mean you want to open C:\\repo\\path\\to\\file.cs in Visual Studio using Powershell? 您是否要使用Powershell在Visual Studio中打开C:\\ repo \\ path \\ to \\ file.cs?
devenv.exe C:\\repo\\path\\to\\file.cs devenv.exe C:\\ repo \\ path \\ to \\ file.cs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.