In the Visual Studio SQL editor, how do I get rid of the boxes?

早过忘川 提交于 2019-12-10 22:38:39

问题


I usually create my SQL tables and stored procedures by writing a script inside Visual Studio. This works really well for me except for one simple annoyance: VS puts blue boxes around all the SQL queries and data-manipulation commands. The purpose of these boxes is to draw undue attention to the fact that VS thinks the query can be edited in “Query Builder.”

I don’t want to use Query Builder. I just want a nice, clean script that reflects my fantastic vision of what the DB engine should do. Blast it, Jim, I’m a programmer not a Microsoft Access hobbyist!

I do, however, like the syntax highlighting and source-control integration that VS provides.

So my question is this: How do I turn off the annoying blue boxes?


回答1:


Set the color of the SQL query outline to the same color as the background.




回答2:


Open Visual Studio Tools --> options --> Database Tools --> General. Uncheck "Enable DML Markers"



来源:https://stackoverflow.com/questions/270005/in-the-visual-studio-sql-editor-how-do-i-get-rid-of-the-boxes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!