Useful UE4 Visual Studio extensions.
Branch: master
Clone or download
hackalyze Merge pull request #14 from hackalyze/check-autoformat-on-semicolons
This fixes #13.  Check that C++ formatting on semicolons is enabled b…
Latest commit 87443ca Apr 2, 2017

README.md

UE4 Smarter Macro Indenting

This extension was designed to fix the unnecessary and annoying "smart" indenting that Visual Studio likes to do around various UE4 macros. It attempts to fix these indents when your current line proceeds any of the following UE4 macros:

  • UPROPERTY
  • UFUNCTION
  • GENERATED_BODY
  • GENERATED_UCLASS_BODY
  • GENERATED_USTRUCT_BODY
  • GENERATED_UINTERFACE_BODY
  • GENERATED_IINTERFACE_BODY

Demo

Before After
Example Example

Installation

  1. Download and install the Visual Commander extension for Visual Studio from here: https://vlasovstudio.com/visual-commander/
  2. Go to VCmd -> Import and import ue4_smarter_macro_indenting.vcmd
  3. Go to VCmd -> Extensions to open the Extensions panel
  4. Check the "Enabled" checkbox for the "UE4 Fix Indent" extension.
  5. Make sure Indenting is set to "Smart" in Tools -> Options -> Text Editor -> C/C++ -> Tabs.

If "VCmd" doesn't appear on your Visual Studio toolbar after installing Visual Commander, you may need to restart Visual Studio.