Solved

Need get a program to align my code automatically in visual C#

Posted on 2008-06-24
5
435 Views
Last Modified: 2013-12-16
I need to have all my code align in C#. in VB.Net it is ok. But for some reason it does not align my code.
Anything that can help me.
0
Comment
Question by:mathieu_cupryk
5 Comments
 
LVL 10

Accepted Solution

by:
Marcjev earned 250 total points
ID: 21855646
Try:
Edit/Advanded/Format document  CTRL-E D or
Edit/Avanced/Format selection Ctrl-E F
(and file extension should be .cs)
0
 
LVL 3

Assisted Solution

by:aphillips
aphillips earned 250 total points
ID: 21855653
In Visual Studio the code should be automatically formated as you enter it as long as the IDE thinks its is a C# file (has file extension .cs) and you have the options turned on (see Tools/Options/Text Editor/C#/Formatting/Indentation).

To reformat existing code use Edit/Advanced/Format Document.
0
 

Author Comment

by:mathieu_cupryk
ID: 21855770
MARCJEC it says is not a command the combination.
0
 
LVL 18

Expert Comment

by:philipjonathan
ID: 21855885
There is already an in-built function in Visual Studio.
You just need to highlight the portion of the code that you want to reformat, then choose Edit -> Advanced -> Format Selection / Document
0
 
LVL 10

Expert Comment

by:Marcjev
ID: 21859267
The key combination can be changed visual studio. You should use the menu as suggested by myself and philipjonathan.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question