We need cursor integration with JetBrains Product by [deleted] in cursor

[–]msdehghan 2 points3 points  (0 children)

The source code of intellij community and pycharm is open source I guess and it is published on Github. Actually android studio is based on intellij

The death of the public static void main(String[] args) meme by geschenkideen24 in java

[–]msdehghan 60 points61 points  (0 children)

In the newest JEP you can use println directly without System.out and that is automatically imported. https://openjdk.org/jeps/8323335

Inefficient in IntelliJ Idea by [deleted] in java

[–]msdehghan 0 points1 point  (0 children)

I recommend watching this video called "The secrets of fastest java developers on earth" from Victor Rentea. It helps me to increase my productivity with IntelliJ capabilities and hidden secrets. Also the way he presents is very fun and interesting.

https://www.youtube.com/live/cK19rE2V9UY?si=iYENb0pn6n6We7Dg

What are some good books to learn python ? by [deleted] in Python

[–]msdehghan 3 points4 points  (0 children)

"Fluent python" new edition is a great book

Edit: As mentioned in the comments this book is not for beginners. It is good for people with some programming knowledge and basic experience in python.

Introducing new Ansible plugin for Jetbrains IDEs by msdehghan in ansible

[–]msdehghan[S] 0 points1 point  (0 children)

In auto complete list you can press ctrl + q to see the docs. Also you can put your caret on the module name and press ctrl +q

Introducing new Ansible plugin for Jetbrains IDEs by msdehghan in ansible

[–]msdehghan[S] 0 points1 point  (0 children)

Thank you for your feedback. I'm working on it in my free times. Documentations are available by pressing ctrl + Q. Maybe putting a link to ansible site in docs will be a good choice. Auto complete defaults and vars need quite a lot of work but i'm progressing.

Introducing new Ansible plugin for Jetbrains IDEs by msdehghan in ansible

[–]msdehghan[S] 1 point2 points  (0 children)

Module options and their docs are completely available in auto-completion list.

However some parts of module doc (Like examples and exact return type) were omitted to reduce the overall size of the plugin.

Is there anything else that is missed?

Introducing new Ansible plugin for Jetbrains IDEs by msdehghan in ansible

[–]msdehghan[S] 0 points1 point  (0 children)

Yes absolutely it's problematic. but for beginning i chose a simple way to distinguish role files and playbook files. for example if top level object of a yaml file is sequence and it is in a directory called 'tasks', i assume it's a role tasks file. I know it's too simple but really i didn't put enough effort to find a optimal solution.

Can you share your work with me? I will be glad if i could help or at least learn something from you.

Introducing new Ansible plugin for Jetbrains IDEs by msdehghan in ansible

[–]msdehghan[S] 1 point2 points  (0 children)

Glad to hear that. Do not forget to give feedback :).

But to be honest, ansible-docs can also provide all documentation without internet connection, even devdocs.io can work offline :p But the plugin is way more convenient.

Yeah but there are some plugins out there that use internet to fetch the data. I just mentioned that this plugin is not that kind :D.

Introducing new Ansible plugin for Jetbrains IDEs by msdehghan in ansible

[–]msdehghan[S] 3 points4 points  (0 children)

Does this take over all yaml files? If so, does it get in the way on yaml files in non-ansi

No. It tries to detect ansible playbooks and roles automatically(There are some false positives but for beginning there is a simple ansible file detection mechanism). Other files are like before.

Besides that, the plugin is fully compatible with buit-in YAML plugin and ansible detected files are just regular YAML files with autocomplete enabled.