在 SQL Server Management Studio 中使用 Poor Man's T-SQL Formatter 是否有任何额外的安装要求?因为我无法访问它

Are there any additional installation requirements to use Poor Man's T-SQL Formatter in SQL Server Management Studio? Because I am unable to access it

我在 SSMS v18.9.1 中安装了穷人的 SQL 格式化程序

参见issue #265 in the Github repository and link to a fix in issue #244

Edit ssms.exe.config
C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE

In <assemblyBinding> Add

<dependentAssembly> <assemblyIdentity name="Microsoft.VisualStudio.Shell.12.0" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> <bindingRedirect oldVersion="2.0.0.0-15.0.0.0" newVersion="15.0.0.0"/> </dependentAssembly>