Giter Site home page Giter Site logo

itsfinn / vscode-comment-translate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intellism/vscode-comment-translate

0.0 0.0 0.0 18.14 MB

vscode 注释翻译插件, 不干扰正常代码,方便快速阅读源码。

Home Page: https://marketplace.visualstudio.com/items?itemName=intellsmi.comment-translate

License: MIT License

JavaScript 1.49% TypeScript 16.27% TypeScript 16.27% TypeScript 16.27% TypeScript 49.47% CSS 0.23%

vscode-comment-translate's Introduction

VSCode 注释翻译

Licence

简介

【English】 【日本語の文書】 【한국어】

许多优秀的项目,都有丰富的注释,使用者可以快速理解代码意图。但是如果使用者并不熟习注释的语言,会带来理解困难。 本插件使用 Google、Bing、Baidu、AliCloud、DeepL等的 Translate API 翻译 VSCode 的编程语言的注释。

Introduction

功能

  1. Hover识别并翻译代码中注释部分。支持不同语言,单行、多行注释。
  2. Hover翻译选中区域文本(划词翻译)
  3. 翻译并快速替换选中文本
  4. 翻译并替换文件中所有"字符串"或"注释"
    • 如果有选中的文本区域,只识别并翻译替换选中区域的“字符串”或“注释”
  5. 翻译Hover内容。(实验功能)

配置

  • commentTranslate.hover.enabled: 开启/关闭悬停翻译(可以通过状态快速设置)
  • commentTranslate.hover.concise: 开启/关闭简洁模式.开启后只有按住ctrl或command才会触发悬浮翻译
  • commentTranslate.hover.string: 开启/关闭字符串悬停翻译
  • commentTranslate.hover.content: 开启/关闭翻译悬停内容
  • commentTranslate.multilineMerge: 合并多行注释
  • commentTranslate.targetLanguage: 翻译目标语言,没有设置的情况下使用vscode本地语言。(可以通过状态快速设置)
  • commentTranslate.source: 翻译服务源配置。建议通过命令完成设置。 支持插件扩展翻译服务源。 example
  • commentTranslate.maxTranslationLength, 最长翻译长度配置。规避过长字符翻译引起收费过多问题
  • commentTranslate.googleTranslate.mirror,解决国内服务不可访问问题. 文档

翻译源

  • 支持外部“翻译源”扩展。目前外部插件已支持 ChatGPT & DeepL & tencent cloud 翻译源.
  • 已内置Ali翻译源。 可以通过 开通阿里云机器翻译 生成 accessKeyId & accessKeySecret ,并配置到插件中。切换对应翻译源,获得更稳定的翻译服务

vscode-comment-translate's People

Contributors

intellism avatar cherrs avatar jawa0919 avatar rrrmaster avatar rukeni avatar kaspiandev avatar aky100200 avatar kitiho avatar nghdeveloper avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.