Code++ is a VS Code extension designed to streamline your coding process by generating code snippets and responses based on your prompts. Encapsulate your prompt or code in special tags to receive the required code.
Features
Prompt Selection: Select the type of prompt from the left-hand menu.
Prompt Encapsulation: Encapsulate your prompts or code using specific tags to generate the desired output.
Installation
After installing the Code++ extension, install "GitHub Copilot Chat" from Extensions
In the GitHub Copilot Chat Extension page, select "Switch to Pre-Release Version"
For first time users, Code++ will prompt you to authorize your GitHub Account. Follow the prompts to complete the installation.
How to Use
Select Prompt Type:
From the Activity Bar, open Code++ Config, choose the type of action you want to use.
Encapsulate Your Prompt:
To send a prompt, encapsulate your text in @@ code++ and close with @@.
Example:
@@ code++
Generate code for fibonacci series
@@
This will generate the required code for the Fibonacci series.
Example Usage
Generating Code for Fibonacci Series
Select "Generate Code" from the Menu.
Encapsulate Your Prompt:
@@ code++
Generate code for fibonacci series
@@
Output:
def generate_fibonacci(n):
series = []
if n >= 1:
series.append(0)
if n >= 2:
series.append(1)
for i in range(2, n):
series.append(series[i - 1] + series[i - 2])
return series
# Example usage
n = 10
fib_series = generate_fibonacci(n)
print(fib_series)
Known Issues
Ensure your prompts are correctly encapsulated within @@ code++ and @@ tags.
Make sure to select the correct prompt type from the left-hand menu to get accurate results.
Release Notes
1.0.0
Initial release of Code++.
Features prompt selection and encapsulation for code generation.