简体   繁体   English

在Netbeans中导出JavaScript格式

[英]Export JavaScript Formatting in Netbeans

Is anyone aware of a way to export the formatting for JavaScript in Netbeans 8.1? 有人知道在Netbeans 8.1中导出JavaScript格式的方法吗?

When I click the export button and expand Formatting I do not see an option for JavaScript. 单击导出按钮并展开“ 格式设置”时 ,没有看到JavaScript选项。

选项的屏幕截图

I've also considered the option of finding the file that these settings are stored in and using that, but I'm not sure where in the Netbeans folder it would be. 我还考虑过选择这些设置存储在其中的文件并使用该文件的选项,但是我不确定它在Netbeans文件夹中的位置。

Thank you for any feedback. 感谢您的任何反馈。

I was able to track down the file org-netbeans-modules-editor-settings-CustomPreferences.xml at the location \\AppData\\Roaming\\NetBeans\\8.1\\config\\Editors\\text\\javascript\\Preferences . 我能够在\\ AppData \\ Roaming \\ NetBeans \\ 8.1 \\ config \\ Editors \\ text \\ javascript \\ Preferences位置跟踪文件org-netbeans-modules-editor-settings-CustomPreferences.xml I gave this file to a coworker who placed it in the same directory and restarted the IDE which resulted in the same formatting settings that I had originally configured for mine. 我将此文件提供给一位同事,该同事将该文件放在同一目录中,然后重新启动IDE,这产生了与我最初为我的配置相同的格式设置。 So the solution was to just share the file. 因此,解决方案是仅共享文件。

Hope this helps someone out in the future. 希望这对以后的人有所帮助。

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

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