Visual studio Visual Studio 2019-使用PowerShell而不是解决方案资源管理器打开文件

Visual studio Visual Studio 2019-使用PowerShell而不是解决方案资源管理器打开文件,visual-studio,powershell,navigation,Visual Studio,Powershell,Navigation,我希望使用PowerShell作为解决方案资源管理器的替代方案 例如,可以通过运行此命令在VS代码中打开文件(假设.exe位于$PATH变量中): 如果能够对Visual Studio执行同样的操作,那就太好了: ps>vs C:\repo\path\to\file.cs 对于那些问为什么的人,我真的相信这是一个更快的方法。特别是由于Ctrl+,不能很好地处理index.cshtml您的意思是要使用Powershell在Visual Studio中打开C:\repo\path\to\fi

我希望使用PowerShell作为解决方案资源管理器的替代方案

例如,可以通过运行此命令在VS代码中打开文件(假设.exe位于$PATH变量中):

如果能够对Visual Studio执行同样的操作,那就太好了:

ps>vs C:\repo\path\to\file.cs

对于那些问为什么的人,我真的相信这是一个更快的方法。特别是由于
Ctrl
+
不能很好地处理
index.cshtml

您的意思是要使用Powershell在Visual Studio中打开C:\repo\path\to\file.cs吗


devenv.exe C:\repo\path\to\file.cs

我还发现您可以在Rider中这样做:
rider64.exe C:\repo\path\to\file.cs
ps>vs C:\repo\path\to\file.cs