Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Local Development Environments Exploring Your IDE Clean up this mess

Julian Müller
Julian Müller
3,658 Points

Control + Slash is not working on Windows 10 with IntelliJ?

It is shown under Code --> Comment with line comment. However it is not working...

import java.util.*;

public class Messy {
    public   static void main(String[]      args){
    System.out.println( "four"       );     System.out.println("two");
    Please comment out this line and
    this line as well with a hotkey that does multi-line commenting
    List<String> numberWords = Arrays.asList("six", "seven", "eight", "nine");
    for (String numberWord:         numberWords) {
      // Use the sout shortcut to write out numberWord;

1 Answer

Patrik Horváth
Patrik Horváth
11,110 Points

Just use the slash (Ctrl + ÷) on the numpad. it have to works if not when you installed IntelliJ you also installed NOT RECOMMENDED PLUGIN i think its called IdeaVim ( it mess your keyboard shortcuts :D )

or settup it in CTRL + ALT + A then search for KeyMap or CTRL + ALT + S