Tuesday, July 16, 2013

Snippet to Create “C# Like” Collapsible Regions in VS2012 Javascript Files

Ever wanted to create a collapsible region within Javascript? If you have the Web Essentials Extension for VS 2012 you already have that feature:
image
But, the one thing that they are missing in the Web Essentials Extension is a snippet to allow you to automatically insert the region syntax.  Just save this text to “C:\Users\$UserName$\Documents\Visual Studio 2012\Code Snippets\JavaScript\My Code Snippets\regions.snippet” on your local computer, and viola!
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <Header>
    <Title>region</Title>
    <Author>Daryl LaBar</Author>
    <Shortcut>region</Shortcut>
    <Description>Code snippet for region in javascript Using Web Essentials 2012</Description>
    <SnippetTypes>
      <SnippetType>Expansion</SnippetType>
      <SnippetType>SurroundsWith</SnippetType>
    </SnippetTypes>
  </Header>
  <Snippet>
    <Declarations>
      <Literal>
        <ID>name</ID>
        <ToolTip>Region name</ToolTip>
        <Default>MyRegion</Default>
      </Literal>
    </Declarations>
    <Code Language="JavaScript">
      <![CDATA[//#region $name$
 
 $selected$$end$
 
//#endregion $name$]]>
    </Code>
  </Snippet>
</CodeSnippet>

22 comments:

sasitamil said...

This is quite educational arrange. It has famous breeding about what I rarity to vouch. Colossal proverb.
This trumpet is a famous tone to nab to troths. Congratulations on a career well achieved. This arrange is synchronous s informative impolites festivity to pity. I appreciated what you ok extremely here 


Selenium training in bangalore
Selenium training in Chennai
Selenium training in Bangalore
Selenium training in Pune
Selenium Online training

Jaweed Khan said...

I Regreat For Sharing The information The InFormation shared Is Very Valuable Please Keep Updating Us Time Just Went On Reading The Article Python Online Training AWS Online Training Hadoop Online Training Data Science Online Training

Realtime Experts said...

It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful .Oracle training in Bangalore

Realtime Experts said...

I have read your blog its very attractive and impressive. I like it your blog.Microsoft Training in Bangalore

Realtime Experts said...

Great post!I am actually getting ready to across this information,i am very happy to this commands.Also great blog here with all of the valuable information you have.Well done,its a great knowledge.Software Testing Training in Bangalore

python training in vijayawada said...

We as a team of real-time industrial experience with a lot of knowledge in developing applications in python programming (7+ years) will ensure that we will deliver our best in python training in vijayawada. , and we believe that no one matches us in this context.

IT Software Training Institute said...


Our training institute is the best place to learn foreign languages. Enroll for the best Japanese Language training center in Bangalore. Our Foreign Language School specialises in Japanese language education. Join the best foreign language classes, training institute, coaching centers, tutors, instructors in Bangalore.

Japanese Language Training in Bangalore

Japanese Training Institute in Bangalore

Japanese Institute in Bangalore

Japanese Language Institute

Indian Institute of Japanese & Japanese Language

Japanese Learning

Japanese Language Institute in Bangalore

Japanese Courses

Japanese language course in Bangalore

learn Japanese language in Bangalore

Japanese language basics learning in Bangalore

learn Japanese grammar in Bangalore

Japanese learning centres contact addresses in Bangalore

Japanese grammer tuition phone numbers in Bangalore

reviews of Japanese language learning centres in Bangalore

ratings of Japanese spoken classes in Bangalore

IT Software Training Institute said...

Data Analytics Course in Bangalore with 100% placement. We are the Best Data Analytics Course Institute in Bangalore. Our Data Analytics course and Certification courses are taught by working professionals who are experts in Data Analytics.

Data Analytics Training in Bangalore

Data Analytics course in bangalore

Data Analytics in bangalore

Data Analytics classes in bangalore

Data Analytics course institute in bangalore

Data Analytics course and Certification course syllabus

best Data Analytics course

Data Analytics course centers

Keerthi said...

Thank You for the post. Keep the good work


data science course in indore

Training for IT and Software Courses said...

This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me.

Cloud Computing TrainingTraining in Bangalore

rocky said...

I most useful your article is very content blog.
https://docs.google.com/document/d/1Lz2hwijE5HbkWyKiCJv_Rr4IRYBgTd4hkbhhi1GKQhk/edit?ts=5f05684c

Jayalakshmi said...

I read more article content is very nice for your informative content. I like that article.
sap training in chennai

sap training in tambaram

azure training in chennai

azure training in tambaram

cyber security course in chennai

cyber security course in tambaram

ethical hacking course in chennai

ethical hacking course in tambaram

deiva said...

It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful

oracle training in chennai

oracle training in omr

oracle dba training in chennai

oracle dba training in omr

ccna training in chennai

ccna training in omr

seo training in chennai

seo training in omr

Kanika said...

Good Post! , it was so good to read and useful to improve my knowledge as an updated one, keep blogging. After seeing your article I want to say that also a well-written article with some very good information which is very useful for the readers....thanks for sharing it and do share more posts like this.
Tableau Online Training

Amrita Bansal said...

Prefer to study this kind of material. Nicely written information in this post, the quality of content is fine and the conclusion is lovely. Things are a very open and intensely clear explanation of the issue

Manal testing Training in Gurgaon
Selenium Training in Gurgaon
Cucumber Training in Gurgaon
Microservices Testing Training in Gurgaon

Keerthi55 said...

data science training
python training
angular js training
selenium trainings
sql server dba training
Testing tool training

lakshmibhucynix said...

I value the article post.Really thank you! Really Great.
Data Science Online Training
Data Science Online Training in Hyderabad

Lokeswari said...

I think this is one of the best blog for me because this is really helpful for me. Thanks for sharing this valuable information

internship meaning | internship meaning in tamil | internship work from home | internship certificate format | internship for students | internship letter | Internship completion certificate | internship program | internship certificate online | internship graphic design

Leesa John said...
This comment has been removed by the author.
Ramesh said...

Are you searching for the top Data Analytics course online? Then the perfect solution is 360DigiTMG. We deliver sophisticated training using innovative technologies.
Data Analyst Course in Bangalore

TRONIX said...

Nice blog article, Thanks for sharing with us

Java Training

rajk939291 said...

Good Information Thank you..

ELearn Infotech offers Python Training in Hyderabad Madhapur. Our Python course includes from Basic to Advanced Level Python Course. We have designed our Python course content based on students Requirement to Achieve Goal. We offer both class room Python training in Hyderabad Madhapur and Python Course Online Training with real time project.