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

Code Fragments Comments and Native support ? #9

Open
SheepDomination opened this issue Apr 29, 2018 · 4 comments
Open

Code Fragments Comments and Native support ? #9

SheepDomination opened this issue Apr 29, 2018 · 4 comments

Comments

@SheepDomination
Copy link

Out of Curiosity can you do what this extension does native in Visual Studio Code ?

I'd like to see support for comments of code fragments as well as custom code fragment names rather then what the extension supplies for the name. And finally support for OneDrive backup of code fragments.

@markvincze
Copy link
Owner

markvincze commented Apr 29, 2018

Out of Curiosity can you do what this extension does native in Visual Studio Code?

Not as far as I know. The only kinda similar feature is Code Snippets, but that's less convenient for this specific purpose.

  • Comments for fragments: I'll think about this one.
  • Custom names: you can already rename a fragment by right-clicking, and selecting "Rename Code Fragment". And in Ask for a name on fragment saving #5 it might happen that you'll be asked to give it a name immediately after creation.
  • OneDrive backup: this would be a larger piece of work, I created a separate issue for it: OneDrive integration for backup/restore #10
    (btw, you've seen that you can already backup the fragments to a json file, right?)

@SheepDomination
Copy link
Author

SheepDomination commented Apr 29, 2018

Comments for fragments: I'll think about this one.

This would be extremely helpful, since I tend to save code snippets from various sources online and to be able to add comments as to why I saved the code snippet would save me from having to remember everything, which I already try to do 👍 :)

OneDrive backup: this would be a larger piece of work, I created a separate issue for it: #10
(btw, you've seen that you can already backup the fragments to a json file, right?)

I'm not the familiar with JSON at this point, therefore I don't know how to backup the fragments to a JSON file ?

@markvincze
Copy link
Owner

@SheepDomination,

I'm not the familiar with JSON at this point, therefore I don't know how to backup the fragments to a JSON file?

That's not a problem, you can simply export all the fragments with this button to a file:

image

And you can import it back with the other button.

@SheepDomination
Copy link
Author

SheepDomination commented Apr 29, 2018

This is excellent; the only thing missing is to add a comment below the name of the code snippet within explorer > code fragments. 👍

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

No branches or pull requests

2 participants