Code Generation Option Configuration

C# Add-In

Code Generation Option Configuration

Top  Previous  Next

Code Generation Option ([Tools] -> [Options...]) is the group of option items for code generation by C# Add-In. This category includes the [General], [Code Generation], [Code Style], and [File Header] sub-categories.

cs_opt_codegen

General

Option Item

Default

Description

Generate codes even when there is no profile

False

Specifies whether to generate codes even when C# profile is not loaded in the project (not recommended).

Code Generation

Option Item

Default

Description

Generate 1 file each for Class, Struct, Interface, and Enum

True

Specifies whether to generate 1 file each for 1 member (Class, Struct, Interface, and Enum).

Generate unnamed AssociationEnd

False

Generates unnamed AssociationEnd as a reference type field for C# member. In this case, the field identifier is indicated as "UnspecifiedType" with a number at the end.

Generate C# Doc

False

Specifies whether to generate modeling element documentation as C# Doc.

Generate empty C# Doc

False

If checked, C# Doc is generated even when the modeling element documentation does not have any values (empty).

Code Style

Option Item

Default

Description

Insert tabs as spaces

False

Uses space instead of tab for indentation.

Tab width

4

Specifies the number of spaces to be used when inserting tabs as spaces.

Place the opening curly brace in the new line

False

Places the opening curly brace "{" in the new line.

File Header

Option Item

Default

Description

File Header Comments

 

See

description

 

Adds the comments in the beginning of the

source file.

(Default)

//

//

// Generated by StarUML(tm) C# Add-In

//

// @@ Project : @p

// @@ File Name : @f

// @@ Date : @d

// @@ Author : @a

//

//