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

Is there any way to use Sublime Text or any other visual editor "Rails" #1791

Closed
AbhimanyuAryan opened this issue Mar 20, 2017 · 12 comments
Closed

Comments

@AbhimanyuAryan
Copy link

I have rails installed on Bash On Windows. Is there any way I can open that directory in windows sublime text editor?

@aurimus
Copy link

aurimus commented Mar 20, 2017

Yes, paste this into address bar C:\Users\<yourUSERNAME>\AppData\Local\lxss\

@AbhimanyuAryan
Copy link
Author

Thanks

@fpqc
Copy link

fpqc commented Mar 20, 2017

DONT DO THIS

@fpqc
Copy link

fpqc commented Mar 20, 2017

@AbhimanyuAryan do not listen to this, it can lead to data loss. Sublime text doesn't understand the special attributes.

@crcrewso
Copy link

Is there a single windows side editor that successfully handles advanced attributes? I've been using vxsrv and medit until now

@jackchammons
Copy link
Contributor

@AbhimanyuAryan We recommend using a directory located under /mnt/. This is where we automatically mount your fixed NTFS drives. Because of the way that WSL works, only changes made here by Windows applications will be immediately viewable by any Linux applications you are running. If you make changes to C:\Users\<yourUSERNAME>\AppData\Local\lxss\* using anything else but a WSL terminal you will be susceptible to data loss and syncing issues.

Check out the blog that one of our developers wrote on the topic.

@aurimus
Copy link

aurimus commented Apr 3, 2017

@jackchammons is correct, I'm using this approach and it all works together with some git settings for line endings.

@Coridyn
Copy link

Coridyn commented May 26, 2017

I have got Sublime Text 3 running in WSL by using Xming and the steps shown here: https://gist.github.com/MadLittleMods/0e38f03774fb16e8d698175e505f1f3e#using-sublime-text-through-wsl

Then with this alias (adjust install directory as necessary)

alias subl='DISPLAY=:0 ~/downloads/sublime_text_3/sublime_text'

it's super easy to edit files on the Linux side of things:

$ subl ~/.bash_profile

$ subl .

I am running Windows 10 (15063.332) and Sublime Text 3 (3126)

@EvyLynne
Copy link

I needed to get set up to code in Python using WSL and this information was perfect getting Sublime to run from inside the WSL! Thank you!

@therealkenc
Copy link
Collaborator

This one was kind of a question which kind of has an answer, even if it isn't an officially supported scenario. Sublime has run since June 2016 #481 (message). Closing out 'cause there isn't much more to discuss specifically about the ask. @EvyLynne happy it is working for you 👍.

@Spandan-Madan
Copy link

Here's one non ideal solution that I use. Though sublime text surely is awesome, this may be hard to set up. An easier solution is to just use jupyter notebook. From WSL when you launch a jupyter notebook it's going to open up in the browser, where you can edit the file. Not ideal, but at least something :)

@therealkenc
Copy link
Collaborator

There is also theia, ALM, and the like. Totally different ask from the OP though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants