Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 656
dimitris93 Avatar asked Jun 17 '15 21:06

dimitris93


People also ask

How do I set Auto format in Visual Studio?

Auto formatting settings in Visual Studio Show activity on this post. Select the text you want to automatically indent. Click menu Edit → Advanced → *Format Selection, or press Ctrl + K , Ctrl + F . Format Selection applies the smart indenting rules for the language in which you are programming to the selected text.

How do I prettify code in Visual Studio?

The code formatting is available in Visual Studio Code through the following shortcuts: On Windows Shift + Alt + F. On Mac Shift + Option + F. On Linux Ctrl + Shift + I.

What is the fastest way to format code in Visual Studio?

In the default configuration for Visual Studio Code, the command can be run using the shortcut Alt+Shift+F. To format a range, in an already opened project, open the document that you want to modify, select the specific range to format, right-click, and select Format Selection.

How do I format all files in Visual Studio?

You can change the options in "Tools" -> "Options" -> "Format All Files".


1 Answers

I cannot with authority say that it's impossible, but I've never heard of anyone using VS to do Java development.

like image 194
Mathieu K. Avatar answered Oct 09 '22 02:10

Mathieu K.