question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using shortcuts inside browser

See original GitHub issue

Description

Some VSC shortcuts do not work because they are reserved for browser-specific actions. For instance, Strg + N usually opens a new file in VSC, but is reserved by various browsers for creating a new tab or window.

Do you have a plan for improving this? Of course every shortcut is accessible by the command palette, and commands which are unaccessible by the default shortcuts can be reconfigured to be accessible by other shortcuts, but this would require everyone who wants to give code-server a try to configure his instance first before being able to use it productively, and having powerful editing capabilities without the need for extensive configuration is one of VS Code’s key features.

Related Issues

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (13 by maintainers)

github_iconTop GitHub Comments

9reactions
hbjydevcommented, Mar 8, 2019

Not strictly true. There is a way to do it, but it’s kind of a local-app hybrid. If you’re on Chrome (sorry Firefox users!) you can go to Menu > More Tools > Create Shortcut… and just tick “Open As Window” when you make it. Then, just use that to work with Coder and all your <kbd>ctrl+?</kbd> shortcuts will work. It is a browser restriction, although there is a code-side workaround to that too. When you listen for each event, you can put event.preventDefault();. That’ll stop any default handling from occurring, including the browser trying to process the keybinds iirc.

2reactions
nhooyrcommented, May 27, 2020

I think most users just aren’t aware of the PWA and how it works.

Opened https://github.com/cdr/code-server/issues/1726

And we should show a popup #1599

Read more comments on GitHub >

github_iconTop Results From Across the Web

47 Keyboard Shortcuts That Work in All Web Browsers
Alt+Left Arrow or Backspace – Back. Alt+Right Arrow or Shift+Backspace – Forward. F5 – Reload. Ctrl+F5 – Reload and skip the cache, re- ......
Read more >
50 Keyboard Shortcuts That Work Across All Web Browsers
Ctrl + O · Open a local file in the browser ; Ctrl + S · Download and save the current page ;...
Read more >
Chrome keyboard shortcuts - Computer - Google Chrome Help
Action, Shortcut ; Open the Chrome menu, Alt + f or Alt + e ; Show or hide the Bookmarks bar, Ctrl +...
Read more >
How to Create Desktop Shortcuts for Web Pages Using Chrome
1. Navigate to your favorite page and click the ••• icon in the upper-right corner of the screen.
Read more >
The Five Browser Shortcuts Everyone Should Know
For Firefox, you could use Ctrl + L and Ctrl + K respectively instead of Alt + D and Ctrl + E. Also,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found