Skip to content

Smart Code & Editing

FuzzyIDE analyzes your code with Roslyn, the same compiler platform Unity and Visual Studio use. It keeps one compilation per assembly definition and updates it on every keystroke, so errors, completion, and refactorings understand your whole project – including unsaved edits – without waiting for Unity to compile.

Diagnostics

Errors and warnings are underlined as you type. Hover an underline to read the message, and use the Problems panel (Ctrl+Shift+M) to see all of them.

Unity Analyzers

In addition to compiler diagnostics, FuzzyIDE checks for common Unity mistakes. Each one comes with a quick fix.

IDFindsQuick fix
FZU010An empty Unity message (Update() { }) – it still costs a call from the engine every frameRemove it
FZU011tag == "Player" – the comparison allocatesUse CompareTag
FZU012GetComponent, Find… and similar lookups inside Update-style methods that run every frame– (cache it in Awake/Start)
FZU013?. or ?? on a UnityEngine.Object – it skips Unity’s destroyed-object checkUse an explicit null check
FZU014A Unity message with the wrong parameters (Unity will never call it)Change the signature
FZU015A misspelled Unity message, e.g. Updte or OnTriggerEnter2dRename to the correct message
FZU001A tag, layer, scene, input axis, animator state, or Resources path string that doesn’t exist in the project–

Turn the analyzers off in Preferences › Smart Code › Unity Analyzers, and the string validation in Unity Integration › Tag / Layer / Scene String Completion & Validation.

Quick Actions (Alt+Enter)

When the caret is on a line with a problem or a refactoring opportunity, press Alt+Enter (or right-click › 💡) to see the available actions:

  • Using <namespace> – add a missing using (also added automatically when you accept a completion from another namespace).
  • Generate method <name> – create a method you have called but not written yet.
  • Implement interface member(s) – implement one or all missing members.
  • Add [SerializeField] – to a private field.
  • Remove unused usings.
  • The fixes of the Unity analyzers above.

Refactoring

  • Semantic Rename (F2): Renames a variable, method, property, or type and every reference to it across all assemblies. Renaming a serialized field adds [FormerlySerializedAs("oldName")] so Inspector values aren’t lost (can be turned off in Unity Integration).
  • Find All References (Shift+F12): Lists every usage in the project.
  • Go to Definition (F12 / Ctrl+click).
  • Format Document (Ctrl+Alt+F, also Ctrl+Alt+L): Fixes indentation and spacing.
  • Code Cleanup (Ctrl+Shift+Alt+F): Removes unused usings, sorts the rest (System first, then alphabetically, then using static, then aliases), and formats the document.

Completion

Completion (Ctrl+Space, or automatically while typing) offers symbols accessible at the caret, C# keywords, and snippets.

  • CamelCase matching: gcp matches GetComponentInParent.
  • Learned ranking: Completions you accept are remembered and ranked first next time.
  • Override completion: Type override in a class body to list the base members that can still be overridden; picking one inserts a stub that calls base (or throws for abstract members).
  • Unity messages: Type the name of a Unity message (Update, OnCollisionEnter, …) to insert it with its correct signature.
  • Unity strings: Inside CompareTag("…"), LayerMask.NameToLayer("…"), SceneManager.LoadScene("…"), Animator.Play("…"), Input.GetAxis("…"), Resources.Load("…"), Shader.Find("…") and similar calls, completion lists the tags, layers, scenes, states, axes, and paths that exist in your project.

Signature help

While typing a method call, a popup shows the parameters with the current one highlighted. Use ↑ / ↓ to browse overloads.

Snippets

Type a snippet prefix and pick it from the completion list. Tab / Shift+Tab move between placeholders; Esc ends the snippet.

Built-in snippets: for, forr, foreach, if, else, while, try, switch, prop, sf (serialized private field), header, coroutine, reqcomp, createmenu, menuitem, log.

Your own snippets

Run Open: Snippets File from the command palette. It opens UserSettings/FuzzyIDE/snippets.json, which uses the VS Code snippet format:

{
"Log value": {
"prefix": "logv",
"body": ["Debug.Log($\"${1:name} = {${2:value}}\");$0"],
"description": "Log a value with its name"
}
}

$1, ${2:placeholder} are tab stops and $0 is the final caret position. Changes are picked up automatically.

Visual Aids

  • Semantic highlighting: Fields, properties, parameters, locals, numbers, and Unity messages get their own colors (configurable in the theme).
  • Inlay hints: Parameter names in calls (Move(speed: 5f)) and inferred types after var.
  • Bracket matching: The bracket pair around the caret is highlighted.
  • Occurrence highlighting: Other occurrences of the word under the caret are highlighted.
  • Indent guides: Vertical lines show indentation levels.
  • Minimap and a scrollbar overview ruler with errors, search matches, and Git changes.
  • Zoom: Ctrl+= / Ctrl+- / Ctrl+0 or Ctrl+wheel.

Editing Tools

ShortcutAction
Ctrl+/Toggle line comment for the line or selection
Tab / Shift+TabIndent / outdent the selected lines
Ctrl+DDuplicate line or selection
Ctrl+Shift+LDelete line
Alt+↑ / Alt+↓Move line up / down
Ctrl+Enter / Ctrl+Shift+EnterInsert a line below / above
Ctrl+LSelect the current line
Ctrl+↑ / Ctrl+↓Add a caret on the line above / below (multi-caret editing)
  • Auto-close brackets and quotes, and smart backspace that removes a whole indentation level.
  • Undo coalescing: Typing is undone word by word instead of character by character.
  • Files keep their line endings, BOM, and final newline when saved. Turn on Insert Final Newline on Save to add a newline to files that don’t end with one.