Announcement

Collapse
No announcement yet.

Code Comments in Visual Studio Pro 2013

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Code Comments in Visual Studio Pro 2013

    Is there any way to have comments ignore UPROPERTY and UFUNCTION lines? My code looks really ugly getting comments to show up corrently when you hover over function / variables.

    I Have to do this:

    UFUNCTION(BlueprintCallable, Category = Location)
    /**
    * Determine if a move is valid
    *
    * @param CurrentLocation The current location.
    * @param RequestedLocation The requested location to move to.
    *
    * @return true if the requested location is adjacent, false if its not.
    */
    bool IsMoveValid(const class ABaseLocation* const CurrentLocation, const ABaseLocation* const RequestedLocation);

    #2
    Hi falola,

    I'm not sure if I 100% understand what the issue is, but I lay out my macros in the following way.

    /* Get the Structural Integrity value of the ship. */
    UFUNCTION(BlueprintCallable, Category = Stats)
    float GetStructuralIntegrity();
    My comments display fine.

    Comment


      #3
      I wonder what i messed up in visual studio then...oh well i guess time to reset to defaults and try again

      Comment


        #4
        Originally posted by falola View Post
        I wonder what i messed up in visual studio then...oh well i guess time to reset to defaults and try again
        Actually, mine display correctly using this in-editor. As in, using my method, comments display correctly on functions and properties as viewed within the editor itself. Is this the issue you were having, or were you not able to see the comments when hovering over the properties and functions inside C++?

        Comment


          #5
          Originally posted by HateDread View Post
          /* Get the Structural Integrity value of the ship. */
          UFUNCTION(BlueprintCallable, Category = Stats)
          float GetStructuralIntegrity();
          This works fine for me, too.

          Comment


            #6
            Originally posted by HateDread View Post
            Actually, mine display correctly using this in-editor. As in, using my method, comments display correctly on functions and properties as viewed within the editor itself. Is this the issue you were having, or were you not able to see the comments when hovering over the properties and functions inside C++?
            Not able to see them inside C++ (visual studio pro 2013)
            In my class if i hover over a function it wont show the comment that is above the UFUNCTION. i have to move the UFUNCTION() above the comment for it show in the hover tooltip

            Here is what is happening:

            Correct:
            Click image for larger version

Name:	Correct.png
Views:	1
Size:	10.3 KB
ID:	1056441

            Incorrect:
            Click image for larger version

Name:	Incorrect.png
Views:	1
Size:	9.3 KB
ID:	1056440
            Last edited by falola; 09-09-2014, 04:24 AM.

            Comment


              #7
              I might just have to re install Visual Studio and see if that fixes it

              Comment


                #8
                Ran the VS repair and the repair for the update 3 and it still doesn't work. Next step is to uninstall VS all together

                Comment

                Working...
                X