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

Create live templates for common code snippets #41

Open
1 of 3 tasks
obiwan87 opened this issue May 14, 2024 · 3 comments
Open
1 of 3 tasks

Create live templates for common code snippets #41

obiwan87 opened this issue May 14, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@obiwan87
Copy link
Owner

obiwan87 commented May 14, 2024

  • print -> fmt.print
  • println -> fmt.println
  • main -> main :: proc() ...
  • to be continued
@Dima-369
Copy link
Contributor

I'd say, just start with those 3. But to even be able to define any, one needs an Odin language option here, otherwise I couldn't even start defining any manually in the UI.

CleanShot 2024-08-14 at 22 36 11@2x

@obiwan87
Copy link
Owner Author

Added the template group for odin and a very basic "main" template

@obiwan87 obiwan87 self-assigned this Aug 14, 2024
@obiwan87 obiwan87 added the enhancement New feature or request label Aug 14, 2024
@obiwan87
Copy link
Owner Author

Note to myself:

  • how to make additional changes to the code when using a template e.g.:

print should also auto-import "core:fmt" if the package has not been imported. If yes, it has to take into consideration the import alias

@obiwan87 obiwan87 removed their assignment Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants