Skip to content

Instantly share code, notes, and snippets.

@fatherjack
Last active January 10, 2020 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fatherjack/57486f936e7afdfc9f489ba99b25a63a to your computer and use it in GitHub Desktop.
Save fatherjack/57486f936e7afdfc9f489ba99b25a63a to your computer and use it in GitHub Desktop.
ReplaceRules sp_server_diagnostics formatter
=====
For VSCode extension replacerules <https://marketplace.visualstudio.com/items?itemName=bhughes339.replacerules>
This needs to be placed in the settings.json file
dont forget to add a trailing comma to the content that you find there
and also close the final curly brace correctly
=====
"replacerules.rules": {
"Format sp_diagnostics results 01": {
"find": "><",
"replace": ">\n<"
},
"Format sp_diagnostics results 02": {
"find": " ",
"replace": "\n\t"
}
},
"replacerules.rulesets": {
"Format SP_DIAGNOSTICS": {
"rules": [
"Format sp_diagnostics results 01",
"Format sp_diagnostics results 02"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment