How to ensure the file changes are automatically saved as we type in a file opened in intellij

Answered

Hi, I am trying to make my own IntelliJ Markdown Preview Plugin.

Since the changes in the .md file are not saved automatically until we change the focus, my markdown preview is not updated automatically until I change the focus.

Is there any workaround for it?

Note: I already tried to use the setting - AutoSave file if the idle time is “1” Second but it doesn't make my markdown preview instantaneous like IntelliJ's default markdown preview. 

0
1 comment

Hi Utkarsh,

It's hard to help without any implementation details. I guess you render preview based on the OS file system file content. If this is the case, I suggest using content from the Virtual File System. If not, please share the implementation.

0

Please sign in to leave a comment.