JavaWord
Microsoft Word as a Java "IDE"
Install / Use
/learn @christophebedard/JavaWordREADME
JavaWord
Microsoft Word as a Java "IDE"
<p align="center"> <img src="example.gif"> </p>Setup
Set the path to Java's \bin (at the top in the macro).
Use
Copy or modify the provided .docm file. Alternatively, you can import the macro using any .docm file.
Of course, make sure your Word document has the same name as your Java class!
To build and run, click Macros under the View tab. Make sure JavaWord is selected, then click Run.
Adding a shortcut to the quick access toolbar
To add a shortcut to the macro in the quick access toolbar (as shown in the example above), follow these steps:
-
Right click on one of the icons at the top left (e.g. save, undo, redo) and select Customize Quick Access Toolbar...
-
Under Chose commands from, select Macros
-
Select the macro (should be Project.NewMacros.JavaWord), and click Add >>
-
(optional) To change the icon to the usual "run" icon (triangle), click Modify..., select the icon, and click OK
-
Click OK to close
You can now run your code by simply clicking the newly added button!
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
