Tim-Maes / Tim-Maes/T4Editor

Add command to format T4 template

Open
#25 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
52
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Ideal: you can right click in the editor on a T4 file and there should be an option 'Format T4 template'.

This command should put control block and class feature block tags on new lines and indent the code with 1 tab in between tags.

Optional: attach the command to the format command in Visual Studio (eg; CTRL+K+D)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the T4 editor's right-click command handling and the existing format command integration in the Visual Studio extension. Confirm how control blocks and class feature blocks are represented before defining the formatting behavior. Done means T4 files expose a “Format T4 template” command that places those tags on new lines and indents code between them; attaching it to Visual Studio's format shortcut is optional.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.