Skip to content

Commit 34b96bd

Browse files
committed
Add code formatting guidelines for HTML and C# to development instructions
1 parent 3a6d5f7 commit 34b96bd

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/copilot-instructions.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,33 @@ Content/
9797
- Modern CSS with CSS Grid and Flexbox
9898
- Minimal JavaScript, prefer vanilla JS over heavy frameworks
9999

100+
### Code Formatting Guidelines
101+
- HTML block-level elements must start on a new line
102+
```html
103+
<div>
104+
<p>
105+
Content here
106+
</p>
107+
<section>
108+
<h2>Heading</h2>
109+
<p>More content</p>
110+
</section>
111+
</div>
112+
```
113+
- C# statements must start on a new line, including after control flow keywords
114+
```csharp
115+
if (condition)
116+
{
117+
DoSomething();
118+
AnotherStatement();
119+
}
120+
121+
foreach (var item in items)
122+
{
123+
ProcessItem(item);
124+
}
125+
```
126+
100127
### Database Design
101128
- Use Entity Framework Core with Code First approach
102129
- Implement proper indexing for search functionality

0 commit comments

Comments
 (0)