28

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 :)

2

2 Answers 2

27

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>
4
  • 6
    Using your solution there is no need to install Visual Studio 2015 Isolated Shell. thanks
    – Mahyar
    Aug 11, 2022 at 15:14
  • Life saver! I used this to fix SSMS v19.0.2. Jun 4 at 20:12
  • Save my life too! SSMS V18.12.1
    – Evan
    Jun 18 at 0:36
  • Brilliant, thanks. I honestly struggle to write SQL correctly without Poor Man's SQL Formatter. It helps find stray brackets for one thing.
    – Maxcelcat
    Oct 9 at 6:02
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.

2
  • It is same as my last comment. My friend :) Dec 15, 2020 at 5:56
  • 5
    @HardipsinhJadeja Because of the question had no answer (in the way SO works), I added one to it based on your comment after trying it by myself, so it's easier for people to see the solution ;) Dec 15, 2020 at 13:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.