DEV Community

Cover image for How to share code snippets easily
GoOnlineTools
GoOnlineTools

Posted on • Edited on

How to share code snippets easily

I am happy to announce that I launched a new feature a few weeks ago in GoOnlineTools which you can use to share code snippets easily with your friends or colleagues.

share code snippet

How to share code snippets

  1. Open Share code snippets
  2. Select code language (e.g - HTML)
  3. Write or paste code on the editor.
  4. Now click on the share code button to get a sharable URL.

If you are not logged in to GoOnlineTools then you need to verify "you are not a robot" :)

If you are using vs code then don't forget to checkout this vs code extension - share code snippets extension to share code instantly.

Here is how the shared code snippet looks:

share code snippet

Currently, this code sharing tool supports HTML, JSON, CSS, SQL, LUA, XML, PHP code languages but in the future, we'll add more.

Supported Browser - Chrome, Microsoft Edge, Mozilla Firefox, Brave

I hope this feature help to solve the developer code sharing problem.

If you think any feature added to this code sharing tool then please let me know. I am looking for developers feedback 😍

Update - Vs code extension is live, now share code without switching of windows and copy paste while coding 💻

Top comments (10)

Collapse
 
michaelcurrin profile image
Michael Currin • Edited

Thanks for sharing.

Would you mind adding some points on how you service is better or different compared gists, codebin, jsfiddle, etc.? That would get someone to try your solution even if they already have a favorite.

Can one view all the snippets by another user? Can one search all snippets on the system? Is it possible to add more than one file to an item? Is it open source?

(You don't have to be better than the alternatives in all features, but if you have do something different or do it better, then mention it. That's product differentiation in marketing).

Not having to sign in sounds like a nice feature for casual use before deciding to sign up

Collapse
 
andrewbridge profile image
Andrew Bridge

I'd also like to know this. For any sort of web technology, CodePen or those you've mentioned is surely better as you get a live example of the code running. For anything else, a gist seems just as good!

Collapse
 
goonlinetools profile image
GoOnlineTools

Hello Mike,

This tool is made for shortcode sharing, not for storage (Codepan, Gist). I am trying to make code sharing simple :)

You don't need to signup if you don't like and you can still use this feature as an anonymous

Collapse
 
michaelcurrin profile image
Michael Currin

solve the developer code sharing problem

I would be nice to cover in your post what you understand the problem to be and how you think you've addressed needs well. For some background on your tool. And its limitations (e.g. it can't run code, a user can only make a file with X characters)

Collapse
 
michaelcurrin profile image
Michael Currin

Thanks.

I tried it out and see it is simple enough, though the page takes a while to load and had at least two ads.

Gist and pastebin are also good choices for code sharing. In a gist you can make a file and keep it private (so it isn't found by Google or others) and anyone you send the URL can view it. Nice if you want to make code and share it and throw it away.

I see Pastebin and similar used in forums where people want to share some work in progress code snippet in a forum so someone can help debug.

Collapse
 
christiankozalla profile image
Christian Kozalla
Collapse
 
goonlinetools profile image
GoOnlineTools

I like it :)

Collapse
 
akh47 profile image
Akhil Kala

Hello, I do appreciate the simplicity.
Is this project open source? Or do you plan to make this open source in the future?

Collapse
 
goonlinetools profile image
GoOnlineTools

Currently this project is not open source but if I see good response then in future I will make it

Collapse
 
juli1 profile image
Info Comment hidden by post author - thread only accessible via permalink
Julien

You can also share code snippets with your team or everybody using the Codiga Coding Assistant and it works with Go and 15 other languages!

Some comments have been hidden by the post's author - find out more