Git Product home page Git Product logo

Comments (4)

snowman avatar snowman commented on July 21, 2024 2

hey, listen, boy

do the steps below
=============.

  1. Open VS Code
  2. Press C-p
  3. Type ext install lfs.vscode-emacs-friendly
  4. Open Terminal
  5. $ sed -i '' 's/alt/cmd/' $HOME/.vscode/extensions/lfs.vscode-emacs-friendly-0.9.0/package.json

from vscode-emacs-friendly.

cjauvin avatar cjauvin commented on July 21, 2024

Actually just this aspect kills the possibility of using this extension for me (I keep closing windows instead of copying). Is there any possible solution?

from vscode-emacs-friendly.

snowman avatar snowman commented on July 21, 2024

this is a must-have option, please help :bowtie:

from vscode-emacs-friendly.

cdeyoung avatar cdeyoung commented on July 21, 2024

This isn't a direct fix, but a great workaround I've been using is to download Karabiner-Elements and add the following JSON to ~/.config/karabiner/assets/complex_modifications/custom.json. This will change your keyboard to make:

  • Your Caps Lock key an Escape key when you tap it and a Control key when you hold it down.
  • Your Tab key a Tab key when you tap it and an Option key when you hold it down.
  • Your Shift keys Left and Right Parenthesis when you tap them and Shift keys when you hold them down.

It makes working with VS Code and Emacs much easier.

You can enable or disable any of these three things via the Karabiner-Elements UI.

Here's the JSON:

{
  "title": "Personal Keyboard Rules",
  "rules": [
    {
      "description": "Set the Caps Lock to be the Escape key when tapped and the Control key when held.",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "caps_lock",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_control"
            }
          ],
          "to_if_alone": [
            {
              "key_code": "escape"
            }
          ]
        }
      ]
    },
    {
      "description": "Set the Shift keys to be the left and right parenthesis when tapped and the Shift key when held.",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "left_shift"
          },
          "to": [
            {
              "key_code": "left_shift"
            }
          ],
          "to_if_alone": [
            {
              "key_code": "9",
              "modifiers": [
                "left_shift"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "right_shift"
          },
          "to": [
            {
              "key_code": "right_shift"
            }
          ],
          "to_if_alone": [
            {
              "key_code": "0",
              "modifiers": [
                "right_shift"
              ]
            }
          ]
        }
      ]
    },
    {
      "description": "Set the Tab key to Tab when tapped and Option when held.",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "tab",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_option"
            }
          ],
          "to_if_alone": [
            {
              "key_code": "tab"
            }
          ]
        }
      ]
    }
  ]
}

from vscode-emacs-friendly.

Related Issues (20)

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.