3 Replies Latest reply on Aug 2, 2017 11:27 AM by WilliamDSpherexx

    Format code button breaking code

    WilliamDSpherexx

      I have an issue that I've come upon twice now and curious if anyone has a better workaround than what I do.

      I use the format code button constantly to make sure i haven't broken something recently however certain lines of code it literally breaks... I think its using < or > in a use such as below::

       

      var args: Vector.<String> = new Vector.<String>();

      becomes (note spaces)

      var args: Vector. < String > = new Vector. < String > ();

       

       

      What I have been doing is just adding //the code again so i can quickly copy paste back what it should be....

       

      so i would have this:

      var args: Vector.<String> = new Vector.<String>();//var args: Vector.<String> = new Vector.<String>();

      after hitting format code button this:

      var args: Vector. < String > = new Vector. < String > ();//var args: Vector.<String> = new Vector.<String>();

       

      then i would copy the commented text from the right to the left.   Saves me a few keystrokes per line.

       

      I'm sure somebody has a better solution for me .... I don't see a preference that would fix this.... (already tried turning off "add space after keywords")