Skip to content

Commit b5c1056

Browse files
committed
chore: claude init
1 parent ddbd6c0 commit b5c1056

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.claude/CLAUDE.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# CLAUDE.md
2+
3+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4+
5+
## Project Overview
6+
7+
This is a Visual Studio extension that adds a right-click context menu command to open solution files, project files, or individual files in Notepad++. It targets .NET Framework 4.8 and uses the VS SDK.
8+
9+
## Build Commands
10+
11+
Build the extension (requires Visual Studio with VS SDK or .NET Framework 4.8 targeting pack):
12+
```
13+
msbuild src\CodingWithCalvin.OpenInNotepadPlusPlus.sln
14+
```
15+
16+
Debug by pressing F5 in Visual Studio - this launches the VS Experimental Instance (`/rootsuffix Exp`).
17+
18+
## Architecture
19+
20+
The extension has a simple structure:
21+
22+
- **OpenInNotepadPlusPlusPackage.cs** - The VS package entry point, registers the command and settings page
23+
- **Commands/OpenExecutableCommand.cs** - Handles the context menu command, gets the selected path and launches Notepad++
24+
- **Helpers/ProjectHelpers.cs** - Resolves file paths from Solution Explorer selection (handles solutions, projects, project items, and unloaded projects)
25+
- **Dialogs/SettingsDialogPage.cs** - Options page for configuring the Notepad++ executable path
26+
- **VSCommandTable.vsct** - Defines the context menu command placement
27+
28+
## Key Implementation Details
29+
30+
Path resolution in `ProjectHelpers.GetSelectedPath()` handles three selection types:
31+
1. `ProjectItem` - uses `FileNames[1]`
32+
2. `Project` - uses `FullName` with fallback to `UniqueName` for unloaded projects
33+
3. `Solution` - uses `FullName`
34+
35+
The extension auto-detects Notepad++ in the default install location but allows custom paths via Tools > Options.
36+
37+
## Development Requirements
38+
39+
Install the [Extensibility Essentials 2022](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityEssentials2022) extension for Visual Studio.

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,7 @@ Desktop.ini
151151
$RECYCLE.BIN/
152152

153153
# Mac crap
154-
.DS_Store
154+
.DS_Store
155+
156+
# Claude Code local settings
157+
.claude/settings.local.json

0 commit comments

Comments
 (0)