Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1466

Alignment of comments on a line

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Not A Bug
    • 9.0
    • None
    • None

    Description

      Comments on a line do not align automatically.
       

          public function &javascriptEnabled(): bool
          {
      // Example : Do not align after formatting.
       // Example : Functional alignment after formatting.
              return $this->javaScriptEnabled;
          }
      

      Formatting only works if there is a space before the comment.

       Result after formatting:

          public function &javascriptEnabled(): bool
          {
      // Example : Do not align after formatting.
              // Example : Functional alignment after formatting.
              return $this->javaScriptEnabled;
          }
      

      Attachments

        1. Capture.PNG
          6 kB
          Sébastien Villemain

        Activity

          People

            Unassigned Unassigned
            Trancer Sébastien Villemain
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: