Skip to content
Step by Step Internet 🌐 Guides for learning to surf the Net

Microsoft Visual Studio Tricks: Become an expert with these secret tips and advice – List 2022

UPDATED ✅ Do you want to know the tricks to get the most out of Microsoft Visual Studio? ⭐ ENTER HERE ⭐ and find out what they are ✅ EASY and FAST ✅

Microsoft Visual Studio is the programming environment where Microsoft has framed all the tools for designing websites and applications. for Android, iOS, Windows, Mac and the Azure cloud. In it we will be able to use a wide variety of programming languages ​​such as C++, Java, Visual Basic, among others.

Its integrated development environment can be used to edit, debug and create code. It particularly includes compilers, code completion tools, graphic design programs and other functions that will make the process easier when executing tasks in it.

If you want to increase your productivity and become an expert in this program, Here are some tricks that can help you optimize your work. Well, maybe there are features that you don’t know, such as using the keyboard through an attack and thus getting to it faster.

Visual Studio vs Atom What is the best software development center?

visual studio vs atom

Visual Studio and Atom generally have a few things in common, since were profiled to render desktop presentations with the use of “JavaScript” and “HTML”, this with the intention of being able to expand them over time when executing “Node.js”. However, Atom began to develop with GitHub, in the year 2014, Unlike Visual Studio Code which was created by Microsoft in the year 2015; however in 2018 Microsoft acquired GitHub.

These code editors are based on Electron which is owned by Microsoft. It is because of that Atom through time has carried a good symmetry, because it has had new adaptations constantly, its development track is not clearly governed by Microsoft, which is why it is a program that is recommended for users who do not feel comfortable with Visual Studio.

Atom was designed with the intention of being hackable, as well as customizable for the user, so that he could use several of its functions, where the composition and editing of Git/GitHub stand out, as well as carrying out activities with tabs and blank areas.

Unlike Atom, Visual Studio was built with many more features out of the box, where Git can be used effectively and immediately as a fundamental part of this editor. However, it can also expand various types of plugins.

Although Visual Studio’s native Git composition is sparse, third-party Git installation such as GitLens is required, with the intention of doing a better job.

List of the best Microsoft Visual Studio tricks to get the most out of it

Microsoft visual studio program

In order to develop and carry out a project with software, it is essential to obtain and obtain instruments to increase productivity at the time of “elbowing”, and avoid any type of delay that may occur. That is why we will give you some tips below so that you can get the most out of it when using VisualStudio.

Surely this is one of the best options developers can use when they are coding a language, because it has incredible options.

Comment and uncomment at once

Code managers usually log in and out several times in order to be able to search for entire fractions of codes. A quick and easy way to do this is by selecting the lines and clicking “Ctrl+K”. This makes VS wait for what you will do next. You can comment on them by pressing “Ctrl+C” either “Ctrl+U” to uncomment them.

Remove trailing tabs and spaces

One of the easiest, simplest, fastest and most effective tricks that you can apply to eliminate spaces, tabs or blank lines that are usually unnecessary, is by pressing the keys “Ctrl+E” or “Ctrl+º”. This will save you from having to repeatedly press the key. “Delete” to delete them.

Likewise, you can combine and use keys such as: “Ctrl+E, S” to be able to verify and visualize if there are blank spaces where there are codes; what you will achieve with this is to replace these spaces with points.

Remove tabs and spaces from the end of visual studio

Prepare a comment above the current line

When writing codes, comments or generally a text must be written on the line where it is located, and to avoid what most people do is press the “Arrow up” and then “Enter”, or failing that “Home” + “Enter” + “Up Arrow”.

So to make it easier to do, you can form a line above it, place the pointer on it and then press “Ctrl+Enter”.

Copy the entire current line

If you want to go to the first character of a code and you always press “Home” + “Shift” + “End” to select the entire line and “Ctrl+C” to be able to copy it, you find yourself working double. Well, you can do this in a simpler way by placing the cursor on the line that you are going to copy and clicking on “Ctrl+C” without having to select anything. This will help you copy the entire line.

Go to definition F12

Go to definition F12

If you click on a method or class of code and then press F12, this makes you go to the definition of whatever is under the cursor. To explain better, if you have the name of a class when you press that key, it directs you to the source code it has. On the contrary, if it is a method you will see its code.

If you need to select many lines vertically, you must place the cursor at the starting point found in the first line, and then press the key “Alt” and proceed to drag down, to be able to choose the text or incorporate the cursor and thus start writing.

Collapse all code

To contract all the code you must give “Ctrl+M and O”which will allow you to verify the signature without the execution interfering.

Run command with macros

Performing a command line operation is easy, the same it is commonly used with macros found in the tools menu. That is why you must go to that menu to be able to incorporate an element and be able to configure the command using macros that are available through the button located next to the text.

Parameters can also be placed by requesting tests and so assign an output to the visual output window command.

Master the command palette in VS Code

Like all programs, this one comes with a command palette that allows easy access to certain menus just by pressing the combination “Ctrl+Shift+P” and write what you want to do; for instance “To close”. This will prevent you from having to scroll through different options until you find the one you need.

Search in many files

How many times have you wondered how to find a sentence inside many files because you don’t know where it is. Well, this will no longer be a problem, since you will only have what to press “Ctrl+F” to find what you want within the files you have. “Ctrl+Shift+F” It makes it easy for you to search inside all the files including subfolders of the project that you are doing.

OMBRE SNIPPET + (TAB + TAB)

To do this you can place FOR + TAB + TAB here the screen will show you an example with a loop structure. You can also set the symbols by degree, in order to get code graphics in a specified way and thus easily obtain any type of rule. For that you must execute the combination: (CTRL + K) + (CTRL + D).

Collapse or expand a code snippet

Here you just have to type “Ctrl+M+M” to expand or contract. Note that you can hide a code by collapsing a region of it so that it appears below a sign “+”. Similarly, it can be collapsed by double-clicking on a line in the region. Now if you want to see the content done, you just have to place the mouse over it to display the information.

Get value of an environment constant – Visual Basic Script

Using this option you can obtain the variability values ​​that the system has to be able to execute any type of code. Therefore, it must be copied into a file and placed in a “vbs” extension. A double click must be done for it to be stored automatically. It can be used on operating systems like “Windows XP”, “Windows Vista”, “Windows 2000 Server”, “Windows Server 2003”, “Windows Server 2008”.

Function that returns a long date from a short one – Visual Basic

With this type of function, the date can be replaced in long format when required for any type of activity.

Create components at runtime VB.Net runtime

Through this code you can build any type of properties through components that have been created to perform any activity.

Drop only digits in a string – Visual Basic

Here a string is passed as a measure to later return it to numbers and points, so the characters it has must be removed, such as letters or signs, and only numbers and dots are left.
With this type of function you can format any type of string and thus be able to work with numbers.

Software