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

How to write a code snippet generating current time? #32021

Closed
Kongsea opened this issue Aug 4, 2017 · 4 comments
Closed

How to write a code snippet generating current time? #32021

Kongsea opened this issue Aug 4, 2017 · 4 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality snippets

Comments

@Kongsea
Copy link

Kongsea commented Aug 4, 2017

  • VSCode Version: 1.14
  • OS Version: Ubuntu 14.04

I want to write a code snippet used to write the time when I write the code.
For example, I define a code snippet named timeit, and then when I write timeit, it will generate:

write on 2017.8.4

However, I don't know how to generate the current time. Please give me some advice. Thank you.

Reproduces without extensions: Yes/No

@kieferrm kieferrm added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Aug 4, 2017
@jrieken jrieken added feature-request Request for new features or functionality snippets and removed *question Issue represents a question, should be posted to StackOverflow (VS Code) labels Aug 14, 2017
@matt-erhart
Copy link

matt-erhart commented Sep 18, 2017

@Kongsea
Copy link
Author

Kongsea commented Sep 19, 2017

@matt-erhart This extension https://marketplace.visualstudio.com/items?itemName=jsynowiec.vscode-insertdatestring can also insert date and time.
However, both this one and your extension need manual insertions. I wonder if the snippets can support to generate time automatically.
Anyway, thank you.

@jrieken
Copy link
Member

jrieken commented Nov 17, 2017

/duplicate of #10561

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 17, 2017
@vscodebot
Copy link

vscodebot bot commented Nov 17, 2017

This issue has been closed because it is already tracked by another issue. See also our GitHub issues to search for existing issues and our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Nov 17, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality snippets
Projects
None yet
Development

No branches or pull requests

4 participants