Options

Can the current object in Object Explorer be used in a snippet placeholder?

I feel like this ability would at least have been asked about before but I couldn't find any mention of it so apologies if I'm just being dumb.

The snippet placeholder $SERVER$ inserts the name of the connected SQL server and $DBNAME$ inserts the name of the connected database.  In a similar vein I would like to create a placeholder like $TABLENAME$ or more generically $OBJECTNAME$ that will insert the name of the object already selected in Object Explorer.

(I know I could use $PASTE$ in the snippet and then remember to slowly click the object twice in Object Explorer, press Ctrl-C and then press Esc, but...blech.)

Answers

Sign In or Register to comment.