GitHub Copilot templates for Level 1: Building formula #432
GerjanDorgelo
started this conversation in
General
Replies: 2 comments 3 replies
-
Suggestion for command instead of current text regarding type hints from type_alias.py: |
Beta Was this translation helpful? Give feedback.
1 reply
-
@GerjanDorgelo Have you seen this new idea of prompt files? We can include prompt files inside the project (in the .github/prompts directory) and reference it in the copilot editor. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In order to build formula for Blueprints with a fast pace, here are 8 templates that can be used such that GitHub Copilot builds the Formula and tests with very high accuracy.
Three types of formula are handled:
Basic equations that look like
A = w * h
template_basic_equation.txt -> template_basic_equation_tests.txt
Comparisons that look like
V_Ed < V_Rd
template_comparison.txt -> template_comparison_tests.txt
Casus that have multiple if/else statements, usually containing a bracket
{
template_casus.txt -> template_casus_tests.txt
Then two commands for efficient copilot usage are presented:
Best practice for making formula:
a. the formula name (e.g.
6.41
)b. chapter (e.g.
6.4.3(3)
)c. the equation itself (e.g.
W_1 = c_1^2 / 2 + c_1 * c_2 + 4 * c_2 * d + 16 * d^2 + 2 * pi * d * c_1
)d. the variable description which often can be copy pasted (e.g.
where c_1 is the column dimension ...
)Best practice for making tests:
formula 6.40
(should automatically link to right file with the # in front)Common mistakes by Copilot:
Beta Was this translation helpful? Give feedback.
All reactions