简体   繁体   English

在Eclipse中保存HTML编辑器的操作

[英]Save action for HTML editor in eclipse

I know I can set save action for java/javascript/c++ editor. 我知道我可以为java/javascript/c++编辑器设置save action Is there any way I can set-up Save action for HTML or other text editor. 有什么办法可以设置HTML或其他文本编辑器的保存操作。

As of now (eclipse neon.2), there are no save actions for HTML files. 截至目前(Eclipse neon.2),HTML文件还没有保存操作。 I also tries opening these files in with different editors, which have save actions (like the JavaScript or PHP Editors), but the save action is not triggered when saving HTML files. 我还尝试使用具有保存操作(例如JavaScript或PHP编辑器)的不同编辑器打开这些文件,但是在保存HTML文件时不会触发保存操作。

The only manual 'workaround' is to use Window -> Preferences -> Web -> HTML Files -> Editor to do some settings and format the files manually with [STRG]+[SHIFT]+[F] (default Format command shortcut). 唯一的手动“解决方法”是使用“窗口”->“首选项”->“ Web”->“ HTML文件”->“编辑器”进行一些设置,并使用[STRG] + [SHIFT] + [F]手动格式化文件(默认的“格式化”命令快捷方式) 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM