简体   繁体   中英

Enable automatic formatting for Java in Visual Studio 2015

I downloaded the Java template for Visual Studio 2015, but it doesn't seem to have intelli-sense or format the code like it does with C, C++ and C#. It doesn't even mark error lines with red. It is basically just like notepad, but it compiles just fine.

Is there a way to enable that, or it is impossible?

我无法凭权威说这是不可能的,但我从来没有听说有人使用VS来进行Java开发。

As proposed in Beautify(Format) Java code in Visual Studio Code you may take a look at Language support for Java ™ for Visual Studio Code .

It will look like that:

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM