redhat-developer / redhat-developer/vscode-java

Add Java specific variables to Java Snippets

Open
#1,471 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

API content-assist snippets
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

I would like to add Java specific variables to my Java snippets. In Eclipse, when I go to preferences->Java->Editor->Templates, I can add templates that contain variables that provides hints as to insert into the template. Examples include getting the enclosing type/method/package, the return type, a local variable near where the template is being generated, etc... It even has a variable that lets me specify that when I insert a template, certain import statements should be added to the class.

I want something similar for VSCode snippets so I can port over my favorite custom snippets from Eclipse and create new intelligent snippets.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by locating how Java snippets are defined in the VS Code extension and compare the requested Eclipse template variables with the supported snippet capabilities; done should mean the requested Java-specific variables can be used in snippets, including the examples described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.