如何在Spring Tools 4 for Eclipse中更改终端字体颜色

时间:2018-10-07 05:36:48

标签: eclipse fonts

我找不到在Eclipse中调整终端字体颜色的方法。它以可怕的粉红色出现:(

好像没有简单的配置可以在Eclipse中更改此设置。有什么骇人听闻的方式吗?

1 个答案:

答案 0 :(得分:0)

您可以尝试:

  1. 安装Eclipse的TM Terminal插件。
  2. 转到package test; import java.io.IOException; import java.net.*; /** * Created by dan.geabunea on 6/3/2016. */ public class UdpUnicastServer implements Runnable { /** * The port where the client is listening. */ private final int clientPort; public UdpUnicastServer(int clientPort) { this.clientPort = clientPort; } @Override public void run() { /** * Create a new server socket and bind it to a free port. I have chosen * one in the 49152 - 65535 range, which are allocated for internal applications */ try (DatagramSocket serverSocket = new DatagramSocket(50000)) { // The server will generate 3 messages and send them to the client for (int i = 0; i < 3; i++) { String message = "Message number " + i; DatagramPacket datagramPacket = new DatagramPacket( message.getBytes(), message.length(), InetAddress.getLocalHost(), clientPort ); serverSocket.send(datagramPacket); } } catch (SocketException e) { e.printStackTrace(); } catch (UnknownHostException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } } 选择Window
  3. 点击Preferences
  4. 选中复选框Terminal
  5. 点击Invert terminal colors