IT Nota

  • Home
  • How To
  • .NET
  • WordPress
  • Contact

How to Reassign Column Selection Shortcut Keys in Sublime Text

Following the previous post on assigning a new keyboard shortcuts for column selection, this time we’re going to the same thing in Sublime Text.

As always, before you make any changes, make sure you backup everything.

macOS (OSX)

On the top menu, click on Sublime Text -> Preferences -> Key Bindings and a split screen will open.

Sublime Text Preferences Key Bindings

Sublime Text User Keymap

Using the same key combination as in the example provided for Visual Studio Code (SHIFT-ALT-ARROW), you can paste the following javascript code on the right pane (User). If you’ve already had other custom keybindings, you want to add the two lines without the square brackets in the beginning and end of the code block.

Default (OSX).Sublime-keymap — User

[
    { "keys": ["shift+alt+up"], "command": "select_lines", "args": {"forward": false} },
    { "keys": ["shift+alt+down"], "command": "select_lines", "args": {"forward": true} },
]

Windows

On Windows version of Sublime Text, you can click directly on Preferences -> Key Bindings from the top menu and apply the same treatment as above (copy and paste the JSON above to the right-pane of the split screen).

Sublime Text Preferences Key Bindings on Windows

Closing Thought

Personally, custom key binding especially for column selection has helped me to use both Visual Studio Code and Sublime Text without requiring me to make too much mental switch on either Windows or Mac.

Another trick you may want to try is to use a similar key placement instead of the literal key combination instead. What I mean by this is that the position of ALT key in Windows and Mac is a bit different. The ALT key on Windows is on the same position as Command (⌘) key on Mac.

So I set my Mac column selection key binding a bit different than its Windows counterpart (alt is replaced with command instead).

[
    { "keys": ["shift+command+up"], "command": "select_lines", "args": {"forward": false} },
    { "keys": ["shift+command+down"], "command": "select_lines", "args": {"forward": true} },
]

Related Article

How to Reassign Shortcut Key for Column Selection in Visual Studio Code
How to Add Comma to Each Line Using Visual Studio Code or Sublime Text

August 12, 2017 Filed Under: How To Tagged With: Code Editor, Sublime Text

Buy me a coffee?

Buy me a coffee If you find any of the articles or demos helpful, please consider supporting my work here, you'll have my big thanks!

Buy me a coffee Support this site
Buy Me a Coffee?

Categories

  • .NET
  • Coding
  • Cybersecurity
  • Database
  • How To
  • Internet
  • Multimedia
  • Photography
  • Programming
  • Resources
  • Review
  • Tips and Tricks
  • Uncategorized
  • Use Case
  • WordPress
  • Writing

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Tags

.NET .NET Core AdSense ASP.NET Cdonts Dll Classic ASP Code Editor ETL FSharp Genesis Framework Git Google HP Asset Manager HTML5 Hugo IIS Information Security Internet Internet Information Services iOS JAMStack Linux macOS Microsoft Microsoft SQL Server MVC PHP PowerShell Python Simple Mail Transfer Protocol Smtp Server SQL SQL Server SSIS SSMS SSRS Sublime Text Visual Studio Visual Studio Code VPN Windows Windows 8 Windows 10 Windows 2012 Windows Server

Copyright © 2011-2025 IT Nota. All rights reserved. Terms of Use | Privacy Policy | Disclosure