Adds a download button to Gemini code blocks. Automatically identifies the language and generates the corresponding file extension.
Adds a "Download" button to the generated code blocks on the Gemini web interface. It supports automatic extension mapping for over 30 languages (including Python, JS, Rust, etc.). Files are named using the detected language and a current timestamp (YYYYMMDD-HHMMSS) to prevent overwriting.
---
在 Gemini 网页端的代码块中加入“下载”按钮。支持自动识别超过 30 种编程语言(如 Python, JS, Rust 等)并匹配对应的文件后缀。下载文件名由识别到的语言名称与当前时间戳(年月日-时分秒)组成,避免文件名冲突。