PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, May 14, 2022

[FIXED] How to add "Open with Code" with right-click in Ubuntu or Pop OS?

 May 14, 2022     linux, ubuntu, visual-studio-code     No comments   

Issue

In windows OS, when we install VS-Code, the option to add "open with code" is offered to us. But I couldn't find it in Ubuntu or Pop-OS! Thus, I'd like to know, is there any way I can add "open with code" when I right-click within a folder to open the folder in VS-Code?

Although, we can use a terminal for opening the directory in VS-Code using "code ." but I'm looking for the right-click of the mouse.


Solution

You could manually write down MIME types associated with vscode in ~/.local/share/applications/mimeapps.list like this

[Added Associations]
text/html=code.desktop
text/css=code.desktop
text/javascript=code.desktop

Assuming you have a proper Desktop Entry inside /usr/share/applications/


You can also try this Nautilus extension (if you use Nautilus)

https://github.com/harry-cpp/code-nautilus

This will install it if you use bash

wget -qO- https://raw.githubusercontent.com/harry-cpp/code-nautilus/master/install.sh | bash


Answered By - user13739429
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing