Short Chat vs Warm tips

Source: Internet
Author: User

Introduced


as a partner of the program Ape, the use of the development tools of skilled use is what we must master.

And as an excellent program of apes. We should not only be able to use it skillfully. And it's going to be used efficiently.

And as. NET platform specifically customized development tools vs that of course we must be proficient. And it's going to be efficient to use.

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvz2vsdxb1/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70 /gravity/southeast ">


VS is the abbreviation for Visual Studio. VisualStudio is a development environment launched by Microsoft Corporation.

Is the most popular Windows platform application development environment. The feature is powerful and has now been updated to the V2013 version number.

The detailed vs introduction is not discussed here. Suppose there are interested friends to be able to find themselves online. Today we are mainly talking about the. NET platform development with some tips for using vs.


Little Tricks
1. the use of templates for creating classes, windows, controls, and other files in vs

As an excellent program ape, good programming habits are essential.

While we are in the process of software development, it is indispensable for us to add our gaze to the code. But in the process of joining the gaze, there are many stares that are repeated, for example, the head gaze of our class module is almost repetitive.

A lot of us are still ctrl+c,ctrl+v. Constantly repeated, constantly wasting time. In our fast-growing information age, time is everything. So we have to pay attention to efficiency in everything, not at the expense of endless time consuming. There's nothing you can't do in this time, just what you can't imagine.

Here for the class module to join the head gaze, as well as some frequently used references and other repeated code. We have, in fact, more efficient, more self-ctrl+c,ctrl+v than we do. As a matter of fact, Microsoft has given us an early answer. Just the rookie of us doesn't know yet. Here's to praise Microsoft. Microsoft is doing very well on the idea of "serving the heart wholeheartedly".

In our society. Only if you do "serve the people wholeheartedly", the common people will be happy to buy your single. This society is a cooperative society, so we have to achieve a "double-win". In fact. This is not just for the serving. It is for our own service, but also the survival of the 21st century way. No nonsense, let's get to the point. In fact this problem, we can use the template very easy to conquer, and let you once and for all. For details on how to do this please see " let VS2012 self-build our own gaze ".

2. High-speed complement selection structure, cycle structure. Tag Code

As a professional it person. Some of the shortcut keys in the computer are what we need to know. Not all of the code in VS has to be written by our users in person. Vs It's an intelligent IDE. So there's a lot of repetitive code that can help us write the machine. Here we have to fully exert its intelligence. Don't talk nonsense. Step into the chase.

In VS, each structure code (such as selecting structure if or looping structure for). Just knock it out of its first keyword and hit tab 2 in a row. The framework of the structure will be generated. such as the IF structure. After you knock the IF and then hit 2 tab, it will appear:

if (true)

{

}

The shortcut key for the complement tag is tab+ Caps Lock.

3. Adding gaze skills

1) Take the initiative to create a gaze frame

Our traditional gaze is divided into block gazing and line gazing. In VS we use the second gaze method, which is more intelligent, and can also see your previous gaze cues when you use a class or method that has previously been added to the gaze. In particular, when you call other classes to forget the method's parameters, it will proactively pop up your previous gaze hints. How to do it in detail? In C # just want you to knock on the line next to the defined class or method, or/or you will create the gaze frame on your own, and then you can complete the gaze with the frame.

In the vb.net of the same strike "" can.

2) Outline gaze

Writing code is, in fact, like writing articles, high-quality code. It must be clear and intuitive to gaze. Give a person a sense of beauty. How do we package our code in VS to make it structured and clearer? A packaging structure is provided for this vs #region ... #endregion.

With this packaging structure, we are able to package our code into various hierarchies and fold them into outlines. For example, the following code, after #region packaging, can be folded into an outline form.


Before folding:

After folding:

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvz2vsdxb1/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70 /gravity/southeast ">

4. Frequently use code snippets to save

In code writing we often encounter a lot of repetitive code, very many people go to Ctrl +c, CTRL + V, in fact, this is not the best aspect. Because in the CTRL + C process you have to find the original code. The process of finding is very annoying. For this, we have a better approach. That's what??? You can select the code you need, and then drag it into the toolbox, and you'll see a label that you can name to make it easier to use later. When you want to use the snippet, you just drag it from the Toolbox into your desired location. Convenient and fast.

Conclusion

In fact, there are a lot of other very useful features in VS that we just have to find out. I hope that everyone in the process of discovery in the future, can be a lot of shares.


Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Short Chat vs Warm tips

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.