This VSCode extension helps you quickly switch between Exported and Unexported Go variable or function names by toggling their case. It's perfect for Go developers who want to easily convert between capitalized (exported) and lowercase (unexported) identifiers.
Features
Toggle Exported/Unexported: Switch the case of a Go function or variable name from Exported (like MyFunction) to Unexported (like myFunction), or vice versa.
Automatic Rename: The extension automatically renames the symbol throughout your document—just like using VSCode's "Rename Symbol" feature (F2).
Effortless: No need to manually change the case—just place your cursor on the symbol and let the extension do the work!
Place your cursor on the Go function or variable you want to toggle.
Open the Command Palette (Cmd+Shift+P or Ctrl+Shift+P), search for "Toggle Exported/Unexported", and select it. The extension will toggle the case for you.
Keyboard Shortcut (Optional):
You can set a keyboard shortcut to make it even easier to toggle the case. For example, add this to your keybindings.json: