apache / apache/netbeans

sout + <tab> does not work under `for`

Open
#5,244 9 comments 0 reactions 0 assignees Claimed by @Stuaarts View on GitHub
Contribution welcome good first issue Java kind:bug
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 16

### What happened

`sout` is at least one of the abbreviations which do not in certain contexts

### How to reproduce

Write a for-loop's header, press enter, write `sout`, press tab, the abbreviation does not change into `System.out.println("")`.

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Linux Mint 20.2 Uma

### JDK

OpenJDK Runtime Environment (build 14.0.1+7)

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

### Are you willing to submit a pull request?

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the Java editor by entering a for-loop header, pressing Enter, then expanding `sout` with Tab. Compare the behavior with linked pull request #9595. Done means `sout` expands to `System.out.println("")` in that context.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.