Skip to content

Instantly share code, notes, and snippets.

View th3terrorist's full-sized avatar

Roberto Montalti th3terrorist

View GitHub Profile
@th3terrorist
th3terrorist / vim-unreal.md
Last active July 30, 2022 11:33 — forked from chillpert/vim-unreal.md
Debugging and autocompletion for Unreal Engine 4 projects in (Neo)Vim

Debugging and autocompletion for Unreal Engine 4 projects in (Neo)Vim

Autocompletion

  1. Install coc.vim, e.g. with vim-plug inside .vimrc:
    Plug 'neoclide/coc.nvim'
  2. Run
    :CocInstall coc-clangd
  3. In UE4Editor
    • go to Edit - Editor Preferences - General - Source Code - Source Code Editor and select Visual Studio Code
    • go to File - Refresh Visual Studio Code Project
  4. Create a symlink from your project's root directory to myProject/.vscode/compileCommands_myProject.json
    ln -s .vscode/compileCommands_myProject.json compile_commands.json

Alternatively, you can also use YCM or Neovim's native LSP.