Sometimes, we use custom file extensions to make our work easy. For example, we may use .prc for stored procedures and .tbl for table scripts. And many more. But when it opens through visual studio, those files are treated as normal text files.
But what if we need to make them look like some known file format, which for example in the above case, the content of the file should be visible as real sql files.
It is easy,
Go to Tools > Options > Text Editor > File Extensions and add the extensions that matches with relevant type of editing experiences.
But what if we need to make them look like some known file format, which for example in the above case, the content of the file should be visible as real sql files.
It is easy,
Go to Tools > Options > Text Editor > File Extensions and add the extensions that matches with relevant type of editing experiences.
So here is how those files look like now,
It just like it was on SQL Server Management Studio with file format of .sql but it really is a .prc file.
No comments:
Post a Comment