A Visual Studio .NET extension that provides a better interface for Claude Code CLI, OpenAI Codex and Cursor Agent with support for multi-line prompts and image attachments for high productivity and vibe coding
git clone https://github.com/dliedke/ClaudeCodeExtension.gitA Visual Studio .NET extension that provides a better interface for Claude Code CLI, OpenAI Codex and Cursor Agent with support for multi-line prompts and image attachments for high productivity and vibe coding
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/dliedke/ClaudeCodeExtensionCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Using the ClaudeCodeExtension in Visual Studio, analyze this code snippet for potential performance bottlenecks: [CODE_SNIPPET]. Suggest optimizations and provide a revised version with comments explaining the changes. Also, generate unit tests for the optimized code.
After analyzing the provided C# code snippet, I've identified several performance bottlenecks. The current implementation uses a linear search algorithm to find matching elements, which has a time complexity of O(n^2). Here's an optimized version using a HashSet for O(n) lookups:
```csharp
// Optimized version using HashSet
public List<int> FindMatchesOptimized(List<int> numbers, int target) {
var hashSet = new HashSet<int>(numbers);
var result = new List<int>();
foreach (var num in numbers) {
if (hashSet.Contains(target - num) && num != target - num) {
result.Add(num);
}
}
return result;
}
// Unit tests for the optimized code
[TestClass]
public class OptimizedCodeTests {
[TestMethod]
public void TestFindMatchesOptimized() {
var numbers = new List<int> { 1, 2, 3, 4, 5 };
var target = 5;
var expected = new List<int> { 1, 4 };
var actual = FindMatchesOptimized(numbers, target);
CollectionAssert.AreEqual(expected, actual);
}
}
```
The optimized version reduces the time complexity and improves readability. The unit test verifies that the function works as expected.Advanced foundation models via API and ChatGPT
Gain insights into SaaS spending with real-time analytics and budget forecasting tools.
AI-first code editor
Create Beautiful Branded Deliverables. Ship Professionally. Repeat.
AI assistant built for thoughtful, nuanced conversation
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan