Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual c++ 2010 express auto writing brackets

Before I installed Visual Studio I've been using other IDEs like codeblocks and Dev C++, and there was a good option, when I write {, it automatically closes the loop and takes the cursor to a new line, and I didn't need to do it manually as in Visual Studio. Is there an option like this in Visual Studio? If so, how can I enable it?

like image 403
samvel1024 Avatar asked May 12 '13 10:05

samvel1024


1 Answers

Here is a hack to to try making Brace Completer work with all Express editions (I can't test if it works).

  1. Change the extension of the package from vsix to zip.
  2. Locate the file extension.vsixmanifest and open it in a text editor.
  3. There is a list of supported versions. Add a new one called Express_All (for each version of VS you want).

    <SupportedProducts>
        <VisualStudio Version="10.0">
            <Edition>Ultimate</Edition>
            <Edition>Premium</Edition>
            <Edition>Pro</Edition>
            <Edition>IntegratedShell</Edition>
            <Edition>Express_All</Edition>
        </VisualStudio>
        <VisualStudio Version="11.0">
            <Edition>Ultimate</Edition>
            <Edition>Premium</Edition>
            <Edition>Pro</Edition>
            <Edition>IntegratedShell</Edition>
            <Edition>Express_All</Edition>
        </VisualStudio>
    </SupportedProducts>
    
  4. Change back the extension.

  5. Install the package.

You can do the same thing after the add-on is installed. Just edit the right file.

like image 195
Marius Bancila Avatar answered Oct 06 '22 01:10

Marius Bancila