Edit non-project files in IntelliJ

风流意气都作罢 提交于 2020-01-25 00:42:16

问题


I've been trying to edit a non-project file using IntelliJ Community Edition 2016.3, and I cannot get around the write only protection.

I do not get a pop-up asking whether I would actually like to edit the non-proj file, as seen in this post: Intelij 15 edit non project files by default

And I've also installed the Non Project Files Unlocker plugin, unfortunately it did not seem to have an impact (yes I restarted the IDE).

If anyone has had the same experience or if someone has a workaround/solution please let me know. All suggestions are appreciated!

Thanks!


回答1:


--> Create new IntelliJ project (for the 'non-project' file), edit the code, build that code using maven, open original intelliJ project, and the desired file is updated.




回答2:


I had similar problem, but not with non-project files, rather with all the files, IntelliJ Community Edition 2016.3. Most of the time I wasn't able to edit anything. Played with file protection, checked/unchecked write permissions, nothing seemed to work.

What helped me eventually is to go to File->Preferences...->Plugins, then disabled the IdeaVim plugin.

I found that solution here:

https://superuser.com/questions/951374/cant-type-delete-in-intellij-idea-osx-el-capitan-4/952647#952647?s=38d8d09b1b824d14aa70da4954b5bf66

check the accepted answer.



来源:https://stackoverflow.com/questions/42379269/edit-non-project-files-in-intellij

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!