26

Refer to the following screenshot:

enter image description here

In the previous versions of SQL Server Management Studio, it was working perfectly. I am using Windows 10 on a desktop PC.

Appreciate any help for this :)

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Hardipsinh Jadeja
  • 1,180
  • 1
  • 13
  • 30
  • 1
    It's probably worth to mention in the body of the question that you are using [Poor Man's T-SQL Formatter](https://stackoverflow.com/a/7197517/11683). – GSerg Aug 08 '20 at 09:15
  • 4
    I found the answer: Need to download and install Visual studio 2015 isolated shell from the following link: https://visualstudio.microsoft.com/vs/older-downloads/isolated-shell/ – Hardipsinh Jadeja Nov 11 '20 at 10:57

2 Answers2

24

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>
Elton
  • 1,374
  • 16
  • 15
19

For the versions of the plugin that supports SMSS 2014-2018, PoorMan's T-SQL Formatter requires the Visual Studio 2015 Isolated Shell installed in order to work. It can be downloaded from here. After installing it, the option will be made available.

The formatter is now enabled.

Jesús Hagiwara
  • 363
  • 2
  • 8
  • 14