周报@2023-02-06

对于最近的收获的一些总结,主要精力其实在一些提升效率的方案上(比如快捷键,一些有用的 IDE 设置),一些看到的让人感兴趣的文章,记录遇到的一些问题

效率方面

  • Auto Import + Do not import exactly from 的搭配真的很爽。
  • raycast 搭配 macOCR 实现快速 OCR
    • 打开 Raycast, 进入 Settings -> Extensions
    • 选择 Scripts tab, Add Directories, 选择目录
    • 进入目录新建 ocr.sh 文件, 将以下内容写入 ocr.sh 文件
      bash
      1#!/bin/bash
      2# Dependency: requires macOCR
      3# Download: https://github.com/schappim/macOCR
      4
      5# @raycast.schemaVersion 1
      6# @raycast.title macOCR
      7# @raycast.mode silent
      8# @raycast.author powerfulyang
      9# @raycast.authorURL https://github.com/powerfulyang
      10# @raycast.description Get any text on your screen into your clipboard
      11# @raycast.packageName macOCR
      12# @raycast.icon 📸
      13
      14ocr -l zh-Hans
    • 回到 Raycast 设置自己喜欢的 Hotkey, 完事

有趣的东西

BUG

  • Error: Language id "vs.editor.nullLanguage" is an error that occurs when the language id is not configured or known in the Monaco editor. To fix this, you can register the language id by adding the following code:
js
1monaco.languages.register({id: 'vs.editor.nullLanguage'})

相关链接:Error: Language id "vs.editor.nullLanguage" is not configured nor known

关于 chat-gpt

带 AI 的搜索引擎,you.com 很好用。