[经验分享] 分享一款OpenHarmony代码逐行展示工具CodeTeach,适用于教学、培训、直播、录播等场景 原创

dragon 显示全部楼层 发表于 2023-11-6 15:26:23
背景
由于工作需要,一直想找一款方便好用的代码展示工具,能够方便的逐行展示OpenHarmony代码。但是全网各种搜索、下载、使用、测试,始终找不到一款满足需要的。

下面是测试过的VSCode插件:

Auto Coder
能力:定义好,Play Code Script。
缺点:不能暂停、逐行。

auto-type
the extension from which Auto Coder was originally forked

Typewriter
Human like typing for GIFs and live demos
Highlight a block of text then run Typewriter: Set From Selection to allow automatic typing of that text on command (allows pause/play of typing)
能力:定义、启动、暂停。
缺点:不能逐行显示。

Typeit
run a command to automatically type the text in the current file (allows for an ASCII countdown before starting and several typing delay preferences)
能力:写好的文件直接Ctrl + T + I
缺点:不能暂停、逐行。

Codio
start recording to capture audio and file changes, which can then be played back (delays, mistakes, and all)

VSCode HackerTyper
record macros that can be played back as live coding

CodeTour
allows for recording of audio and opening files, which can then be played back later for a codebase walkthrough or live presentation

Typewriter Noises
adds typewriter noises when user types

Hacker Sounds
adds high pitched bleep noises when user types

Aurual Coding

VSCode Replay Clipboard

实测以上都不满足需求,本着“老天爷饿不死瞎家雀儿(jiā qiǎor)”的原则,干脆自己做了一个工具:CodeTeach
不针对任何一个开发工具,适用于Windows平台的所有开发工具。


使用说明
1. 启动CodeTeach.exe。
2. 将要展示的代码复制到剪贴板。
3. 启动VS Code或其它代码编辑器。
4. 按键盘“右ctrl键,按一次出一行代码(剪贴板中内容就少一行)。


CodeTeach.rar (554.58 KB, 下载次数: 0)


无用

©著作权归作者所有,转载或内容合作请联系作者

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论3

Liigo

沙发 发表于 2023-11-17 18:05:51

感觉实用价值不大

dragon

发表于 2023-11-18 09:34  IP属地: 河北省廊坊市

回复 Liigo: 我的南向课程68学时,需要现场编写展示大量代码,不用这个工具,有时会讲不完拖堂…

【1 条回复】

点评

这是个效率工具哈。有时候我们现场讲或编代码(不在PPT中),一下都展示出来有点多,容易分散学习者注意力;分块展示又要反复的复制粘贴,容易降低讲解者效率,干扰讲解者思路;所以才做的逐行展示工具。我的南向课   发表于 2023-11-18 09:29

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部