GithubHelp home page GithubHelp logo

xlinetool's Introduction

XLineTool

A modern xcode extension adding two key shortcuts:

  • Duplicate currently selected lines
  • Add a newline after the current selected line

Duplicate currently selected lines

This will duplicate one or more selected lines. It places the copies of the lines after the current selection, while leaving the cursor as is. I like to bind this to cmd+shift+d, so that it does the inverse of my "delete line" keybinding: cmd+d.

Add a newline after the current selected line

You might have read this and thought: "That's just what the enter key does!" However, the key difference here is that the cursor can be anywhere in the current line. In other words, it is the same as doing a cmd+right followed by return, except that I find it more convinient to bind this action to shift+return.

Installing

  1. Clone this repository, open in xcode
  2. Under the project, signing, for both targets:
    1. Select a team (You may have to create a developer account - free for use locally)
    2. Change signing certificate to "Development"
    3. (For Xcode version < 12 only) Change the XCodeKit framework to "Do not Embed"
  3. Product > Archive
  4. Wait for build to complete and organizer to appear with new archive selected
  5. Select Distribute App
  6. Select Copy App
  7. Choose a location, such as thisRepo/builds/, and export
  8. Launch and then quit that application
  9. Open system preferences > Privacy & Security > Extensions > Xcode Source Editor
  10. Enable XLineTools
  11. Restart Xcode
  12. In Xcode preferences > Key Bindings: filter by xline and set key shortcuts as you choose

The commands will also appear under the menu: Editor > XLineTool. If this does not show up, it means something went wrong with the extension install process. Unfortunatly, extensions are quite finicky and break sometimes for inexplicable reasons. All I can suggest is to try again.

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.