码迷,mamicode.com
首页 > Web开发 > 详细

js环境搭建

时间:2016-04-18 22:16:11      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:

Hi,

 

Finally we get the Visual Studio license, so everyone should have the professional version right now. It’s a good chance to improve our productivity even more!

 

Install extensions

Everybody should install the following extensions in your visual Studio! No exception!

  1. 1.        Web Essentials 2013 for Update4
  2. 2.        VSCommands for Visual Studio 2013
  3. 3.        Productivity Power Tools 2013
  4. 4.        Indent Guides
  5. 5.        ResXManager
  6. 6.        DocStubsJs
  7. 7.        Visual Studio Spell Checker

If you have never installed any extension neither, please click the menu "TOOLS / Extensions and Updates", and click "Online" tab in left, then you can find them there.

 

After you have installed them, please do some configurations about them.

  1.   Click menu: Tools -> Options -> Productivity Power Tools
  2.   Turn off some features in below picture, to preserve your own development habits.
  3.   Click “PowerCommands” in left, and make sure “Format document on save” is checked.
  4.   Click the “DocStubsJs” in left, and configure like below. Especially the highlight lines. Also pay attention to other lines if you have different values.

 

 

 

 

Install JavaScript code snippets

 

Please install the snippets to your visual studio to increase development productivity. Find the code snippets in attachment. If you have never tried code snippet before, please do it like this. Select some codes in text editor, and press Ctrl+K,S combination shortcut key, and choose one snippets.

Please copy the files and paste them into {Visual Studio directory}\JavaScript\Snippets\1033\JavaScript, and overwrite all. Note that the snippets are written for VS2012 and VS2013, don‘t install them for VS 2010.

The code snippets for C#, should be installed to {Visual Studio directory}\VC#\Snippets\1033\Visual C#.

 

 

 

Install an excellent font (Optional)

I want to introduce a wonderful development font to you, Source Code Pro, which is developed by Adobe and open source. It shows code better than your current Visual Studio default font. It‘s a monospaced font (等宽字体), and you can easily recognize similar characters, such as 1-l-I, 0-O. It shows codes in a proper size, neither too small nor too big, not like default font. You can find it in attachement.

 

To install them please copy all *.otf files into c:\Windows\Fonts.

Then open your Visual Studio, and open the “Options” dialog. Expand to Environment - Fonts and Colors menu on left. On right side, choose the font “Source Code Pro”. The normal size is 10.

 

 

 

 

 

Configure your Visual Studio options

 

  1. 1.     CSS Formatting

The CSS codes should be formatted in compact format. See the picture below. The css rules should be shrunk in one line and the different levels should be well indented when you press Ctrl + K, Ctrl + D combination shortcut key.

 

 

Please configure your Visual Studio by the following steps.

 

Step 1:

 

 

Step 2:

 

 

Step 3:

 

 

 

  1.   Change the text intent of XML files

To unify the text intent of all team members, please configure the highlighted numbers to 2, if your value is different.

 

 

 

  1. 3.     C# - using directives sorting

Mark the checkbox, so that all “System” using directives always at top.

 

 

 

 

 

Best Regards

 


 

Fengbao Li / Technical Lead

Phone: +86 131 2471 7568

fengbao.li@symbio.com

www.symbio.com

 

js环境搭建

标签:

原文地址:http://www.cnblogs.com/watchfluture/p/5405989.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!