Java Spring application.properties Code Completion not working

已回答

Hi,
I'm using IntelliJ Idea 

IntelliJ IDEA 2019.1.4 (Community Edition)
Build #IC-191.8026.42, built on July 30, 2019
JRE: 1.8.0_212-release-1586-b4 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6

I'm trying to follow a Udemy course on Spring Boot 2 and copying step by step what the instructor is doing. The instructor is using IntelliJ IDEA Ultimate edition though.

When the instructor goes to edit any of the Spring Boot application.properties IntelliJ code completion kicks in and you can see all the options/intelligence at work in the IDE. I don't see this at all. I am pretty much certain that I have enabled everything I can. The application.properties DO work fine. The changes I make there work fine in my Spring project, such as logging or port selection and more; it's just that there is no IntelliJ code completion in the iDE. 

Code completion is working fine in my Java classes, its just the application.properties (which is located, as per default, in the Resources dir in my project ).

Is this feature only available in the Ultimate edition? Should this work in the community edition? And if so, I'd really appreciate some pointers as to how to enable it.

Many thanks!

Stuart

2
Avatar
Permanently deleted user

Forget this! I now realise that I need a copy of Ultimate Edition. Time to get the wallet out, but I don't mind because IntelliJ is SO good!

2

Hi Kryten,

You are correct, Spring Boot framework is available in the Ultimate edition of IntelliJ IDEA only. It comes as a bundled plugin and is enabled by default.

These two articles should help you with setting everything up:

Let us know should any questions or issues arise.

Happy New Year!

1
Avatar
Permanently deleted user

Thank you Arina
I am now the proud owner of a copy of IntelliJ IDEA Ultimate and could not be happier.....and my application.properties now have code completion!
Best wishes,
Stuart

2

Great news Stuart.

May the additional features serve you well in all your coding endeavors.

Good luck!

1

I understood ultimate version has this feature but we have spring assistance plugin for CE version which can provide you support for yml file auto-completion. But anybody aware of any other plugin which can provide support for application.properties files as well ?  

0

@Vishwas It

Auto-completion for Spring is an Ultimate feature. Discovering a decent match among custom plugins is a highly unlikely event, but you can give it a try none the less: https://plugins.jetbrains.com/search?products=idea_ce&search=spring

1
Avatar
Permanently deleted user

Sounds good, but now I am on the Ultimate version of IntelliJ wild horses could not drag me off it to use anything else.

0

请先登录再写评论。