You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mikepetersonccv edited this page Oct 24, 2012
·
8 revisions
Handy Shortcut to add Usings
When you reference a class that is not in your Usings yet, there is a handy way to add it. Click on the class that it is complaining about, then hover your mouse above the little blue underline that appears (or press +"."), and the editor will suggest to add the Usings. Here is an example:
Handy Trick to get Intellisense to load css in ASCX controls
{<%--Trick intellisense into loading css.--%><%-- Delete this section before committing to Git to avoid warnings --%><%if(false){%><linkhref="~/CSS/bootstrap.min.css"rel="stylesheet"/><%}%>}
Paste the above into your ascx code and intellisense will help autocomplete CssClass=".. items. When done, make sure to delete the section to help avoid compiler warnings.