Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify shell command for Linux and OS X #77

Closed
jchannon opened this issue Nov 18, 2015 · 15 comments
Closed

Simplify shell command for Linux and OS X #77

jchannon opened this issue Nov 18, 2015 · 15 comments
Assignees
Labels
linux Issues with VS Code on Linux macos Issues with VS Code on MAC/OS X verified Verification succeeded
Milestone

Comments

@jchannon
Copy link

Is there a shell command out of the box to launch VSCode?

Atom has atom
Sublime has subl

@egamma
Copy link
Member

egamma commented Nov 18, 2015

VS Code has code

@egamma egamma closed this as completed Nov 18, 2015
@jchannon
Copy link
Author

screen shot 2015-11-18 at 18 10 14

@lukehoban
Copy link
Contributor

On OS X, you need to follow the instructions here to invoke from the command line: https://code.visualstudio.com/Docs/editor/setup.

It would be nice to have an installer on OS X that configured this automatically.

@jchannon
Copy link
Author

Agreed. Not sure how atom and sublime do it

@egamma
Copy link
Member

egamma commented Nov 18, 2015

apologies, forgot that it was a manual step for me on OS X.

@egamma egamma reopened this Nov 18, 2015
@Tyriar
Copy link
Member

Tyriar commented Nov 18, 2015

On ubuntu for atom, this file is renamed from atom.sh and is put in /usr/bin/atom and /usr/share/atom

https://github.com/atom/atom/blob/1ee08be508f6892a6bd2f412d03dcb70de59ebe3/atom.sh

subl puts a file in the same location but it's much simpler, just calling in to the app.

#!/bin/sh
exec /opt/sublime_text/sublime_text "$@"

@jchannon
Copy link
Author

Unlike every other OSS library?

On Wednesday, 18 November 2015, Toni notifications@github.com wrote:

For future reference Githubs issue tracker is not for support or feature
suggestions. Feature suggestions already have a place over at vscodes
uservoice
https://visualstudio.uservoice.com/forums/293070-visual-studio-code and
you can ask for help on StackOverflow with the [vscode] tag
https://stackoverflow.com/questions/tagged/vscode


Reply to this email directly or view it on GitHub
#77 (comment).

@bpasero
Copy link
Member

bpasero commented Nov 19, 2015

Closing, we have instructions for adding "code" to the path.

@bpasero bpasero closed this as completed Nov 19, 2015
@jchannon
Copy link
Author

Not exactly a seamless user experience is it and seeing as the other
editors provide this for you out of the box and @egamma considers it a feature
I'd ask you to reopen this

On Thursday, 19 November 2015, Benjamin Pasero notifications@github.com
wrote:

Closed #77 #77.


Reply to this email directly or view it on GitHub
#77 (comment).

@joaomoreno joaomoreno reopened this Nov 19, 2015
@joaomoreno joaomoreno self-assigned this Nov 19, 2015
@joaomoreno
Copy link
Member

This is valid and I want to fix it.

@joaomoreno joaomoreno changed the title Shell command to launch VSCode Simplify shell command for Linux and OS X Nov 19, 2015
@Tyriar
Copy link
Member

Tyriar commented Nov 20, 2015

I created microsoft/vscode-docs#46 in the docs to improve the script to allow you to continue using the terminal that spawned vscode.

@0xmohit
Copy link

0xmohit commented Nov 20, 2015

It would be nice to see the binary being renamed from Code to code.

@mackenza
Copy link

it's not just a matter of putting it on the path. It needs a decent shell script so that control returns to your terminal window. (like Atom and Sublime do)

Also, as @0xmohit points out, it's called Code and not code which makes a difference

@Tyriar
Copy link
Member

Tyriar commented Nov 21, 2015

@mackenza my PR features a small script that does this, something similar should probably be included in the codebase eventually microsoft/vscode-docs#46 to meet user expectations

@egamma egamma modified the milestone: Backlog Dec 10, 2015
@Tyriar Tyriar added macos Issues with VS Code on MAC/OS X linux Issues with VS Code on Linux labels Feb 3, 2016
@Tyriar Tyriar assigned Tyriar and unassigned joaomoreno Feb 3, 2016
@Tyriar Tyriar modified the milestones: Feb 2016, Backlog Feb 3, 2016
@egamma egamma mentioned this issue Feb 4, 2016
97 tasks
@Tyriar Tyriar closed this as completed in 8981819 Feb 9, 2016
@Tyriar
Copy link
Member

Tyriar commented Feb 9, 2016

The script has been created, moving the OSX portion of this issue to #2859

@Tyriar Tyriar added the verified Verification succeeded label Feb 29, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
lemanschik pushed a commit to code-oss-dev/code that referenced this issue Nov 25, 2022
This script wraps the main code executable for Linux and OS X, redirecting
output to a file and running in the background. An exception is made when help
or version argument are used, not suppressing the output as the bootstrap.js is
expected to write to stdout and immediately exit.

Fixes microsoft#77
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
linux Issues with VS Code on Linux macos Issues with VS Code on MAC/OS X verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

8 participants