How to insert System.out.println () into Eclipse using ctrl + space

When I watched a video about java, a person immediately inserted System.out.println() onto the screen. How can I do it. He writes only the character "S" ...

+6
source share
10 answers

I do it this way: write syso and press ctrl+space . I believe you can customize this stuff: window -> preferences -> java -> editor -> content assist

+6
source

Syso and press CTRL + SPACE , it will work in eclipse ....

And if you want to change it,

> Settings> Java> Editor> Templates.

+6
source

Type syso and press ENTER .


no need << 31> + Space . You can raise the content each time you enter a letter:

  • Go to Window > Preferences > Java > Editor > Content Assist .
  • Enter .abcdefghijklmnopqrstuvwxyz in the "Automatic activation .abcdefghijklmnopqrstuvwxyz for Java" field.

Now, whenever you type, you will be prompted to complete the code.

+2
source

Type Syso , then press CTRL + Space

+1
source

This will be a problem if your window 7 has several options for entering the language. because CTRL + SPACE will change the language instead of pasting System.out.println() ;

+1
source

I like to use the template field Ctrl+Alt+Space , so you can quickly

  • Select and highlight what to print.
  • Ctrl+Alt+Space
  • type: syso
  • Enter
+1
source

In fact, I found out that you don’t even need to write syso , in eclipse even

yso + ctrl + space

enough.

+1
source

In Eclipse Neon, this is sysout Ctrl + Space .

0
source

Shortcut for syso CTRL + spacebar works in all versions of eclipse, instead the setting should not change if the configuration problem was changed, so you can do it correctly by following the steps 1) Change the label binding 2) Make sure that it has been checked under 3) Auto-complete templates on

0
source

So, if you are a mac user, type sysout and try control + space, with the control key, which I mean by the fn key on the Mac keyboard.

0
source

Source: https://habr.com/ru/post/913419/


All Articles