Skip to content

Instantly share code, notes, and snippets.

@sueszli
Created March 8, 2026 14:39
Show Gist options
  • Select an option

  • Save sueszli/6697289088563b086115e27a084d4ef4 to your computer and use it in GitHub Desktop.

Select an option

Save sueszli/6697289088563b086115e27a084d4ef4 to your computer and use it in GitHub Desktop.

Plugins

Prefer LSP over Grep/Glob/Read for code navigation:

  • goToDefinition / goToImplementation to jump to source
  • findReferences to see all usages across the codebase
  • workspaceSymbol to find where something is defined
  • documentSymbol to list all symbols in a file
  • hover for type info without reading the file
  • incomingCalls / outgoingCalls for call hierarchy

Before renaming or changing a function signature, use findReferences to find all call sites first.

Use Grep/Glob only for text/pattern searches (comments, strings, config values) where LSP doesn't help.

After writing or editing code, check LSP diagnostics before moving on. Fix any type errors or missing imports immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment