If you have been following our earlier posts, you may already be aware that OneDrive (SkyDrive) now lets you edit many kinds of text files in the browser. OneDrive.com already offers Office Web Apps, where one can view, edit & collaborate Office docs in the browser – so one can already edit text files in the Word web app. But sometimes you may feel the need for a simpler tool to edit things like To-Do lists, scraps of notes etc. For such things and much more OneDrive.com web app now natively support viewing and editing different kinds of text files.
This was one of the common user requests that have been fulfilled by Microsoft. The best thing is, apart from plain text files, it also supports many kinds of code files, and that too with a bunch of cool features like Line numbers, syntax highlighting and more. Using these features, developers can store, share, edit their code snippets, source codes using this SkyDrive.com HTML 5 based text editor, to the web. Let us check some more details.
Open Notepad and type something and upload it to OneDrive. Now open OneDrive.com. It’ll display your plain text file.
Edit code files using OneDrive
You can see Syntax highlighting with Line numbers. You can share the file and edit it. As you edit and start typing, it provides auto-complete suggestions. Press Ctrl-Space, like you do in Visual Studio, to get the list of autocomplete options or press Tab if you have multiple matches.
For Find & Replace, press Ctrl+F, and you’ll get the Find & Replace window at the top right part of your screen. Or if you select the Match option, you can see all the matches in the document. On the scrollbar, all matches are indicated for its position.
Click on the arrow beside Find box to Open the Replace box. You also have options in Find – Match Case, Match Whole Word and even ‘Use Regular Expression’ option too, click on the asterisk symbol for that.
You have the option of Replace All too. You can also hover on say hex code for color – it shows the color for it.
You can share this code file with others by clicking on the Sharing option, and you can also provide the Edit option, so that they can also make changes and save it.
So when someone opens the file, makes changes to the file you have opened and saves them to SkyDrive, SkyDrive will help prevent conflicting changes. SkyDrive will inform you about the changes and provide the option to compare changes when you try to Save your file.
When you click on Compare Changes, you’ll get a side-by-side view of the document in the browser and the version saved to the OneDrivee. You can choose to merge the changes by copying the changes you want to have, with everyone’s changes or you can discard the changes.
So as you can see, there are so many cool features for editing the code files in the v. You have to upload files – you cannot yet create them in the browser. So one can expect that may users will give requests to Microsoft to introduce this feature to create new text files using OneDrive.
It has been noticed that some languages like CSS have more IntelliSense built-in as compared to other languages like .sql . The latter doesn’t yet have syntax highlighting or completion suggestions. So we hope to see improvements soon.
Also remember that OneDrive is not an IDE, and is not a replacement for Visual Studio, but it can be useful for code snippets, academic projects, personal projects, etc and for sharing on the web.
Go to OneDrive.com & upload your code file or your notepad text file and give it a try.