Possible for Command-/ to Respect Indentation Level?

From a student: “While using the shortcut to comment, the forward slashes start at very beginning instead of preassigned indentation order thus requiring me to take an extra step of indenting code suitably.”