Sublime Forum

Missing PHP Class Indention in "Goto Symbol" Dialog

#1

Goto Symbolcan be toggled with the shortcut CMD+R (or CTRL+R if you use Windows/Linux).

Following Code:

/**
* Example A
*/
class exampleA {
	
	function __construct() {
		# code...
	}

	function doesA() {
		return 1;
	}

	
	function doesB() {
		return 1;
	}

	
	function doesC() {
		return 1;
	}

	
	function doesD() {
		return 1;
	}

	
	function doesE() {
		return 1;
	}

}

/**
* Example B
*/
class exampleB {
	
	function __construct() {
		# code...
	}
}

Should be indented in Goto Symbol like this:

exampleA
  __construct
  doesA
  doesB
  doesC
  doesD
  doesE
exampleB
  __construct

But in my case it isn’t intented in Goto Symbol:

exampleA
__construct
doesA
doesB
doesC
doesD
doesE
exampleB
__construct

And yes I know, for every class one file. This is just an example to make clear that the indention is missing!

Is this common? Or could it be an issue?

0 Likes

#2

I’d say it’s common, both the C# and Python symbol lists are indented, for example.

I’m sure if you log it at https://github.com/sublimehq/Packages/issues, some nice person will make a PR to indent the symbol list :wink:

0 Likes