adhoc programming

Answered

I am new to IntelliJ IDEA.  I am on the cli most of the day.  I am looking for an easy way to open up a new file and start scripting.  Right now I have to create a project and create files.  If I am already on the clients computer, for me it is a lot easier to just type vim and start scripting.  I know that IntelliJ has a terminal tab built in.  Is there a way for me to somehow use that connect to my clients machines and open the files in IntelliJ?

I like IntelliJ alot, I just dont know how to use it efficiently enough and having to deal with vim and manually editing the file.  Sometime it works for small stuff, but most of the time my syntax is right the first time.  If I could figure out how to quickly open up IntelliJ and start scripting It would be awesome.

0
3 comments

> Is there a way for me to somehow use that connect to my clients machines and open the files in IntelliJ?

There is "Deployment" feature in IntelliJ IDEA: https://www.jetbrains.com/help/idea/deploying-applications.html

You can connect to any server via SSH/FTP and see the list of files and download/sync them .Remote editing is also possible. 

> If I could figure out how to quickly open up IntelliJ and start scripting It would be awesome.

Just type "idea <filename>" in the terminal to start IntelliJ IDEA in Light Edit mode: 

https://blog.jetbrains.com/idea/2020/04/lightedit-mode/

0

Cool the lightedit-mode works fine.  The only issue is that it is just for editing files not for creating new one.  Is there a way to do this?  I guess I could do a touch <fileName> first, but it would be nice to do it in one step.  Also I am a vi / vim person, I figured out I could convert my syntax to vim compatible (which is extremely cool).  when I close the file "wq" is there a way to quit IntelliJ as well?

0

> not for creating new one

We are working on that in scope of this request: https://youtrack.jetbrains.com/issue/IDEA-237297

> is there a way to quit IntelliJ as well

It is not supported now. You can use another shortcut to quit IntelliJ IDEA. Just assign it under "Settings | Keymap": 

https://i.imgur.com/drCeEwQ.png

Feel free to create a feature request to vim plugin in case you want the "quit" action to be performed after closing the last editor tab: 

https://youtrack.jetbrains.com/issues/VIM

0

Please sign in to leave a comment.