How to type in "@" symbol in Intellij IDEA
greenlaw110 opened this issue · 2 comments
greenlaw110 commented
The following code doesn't work:
/**
* ```java
* public class FilterConsumer {
* private List<Filter> filters;
* @Inject
* public class FilterConsumer(List<Filter> filters) {
* this.filters = filters;
* }
* }
* ```
*/
Neither this works:
/**
* ```java
* public class FilterConsumer {
* private List<Filter> filters;
* @Inject
* public class FilterConsumer(List<Filter> filters) {
* this.filters = filters;
* }
* }
* ```
*/
Or this way:
/**
* ```java
* public class FilterConsumer {
* private List<Filter> filters;
* {@literal@}Inject
* public class FilterConsumer(List<Filter> filters) {
* this.filters = filters;
* }
* }
* ```
*/
greenlaw110 commented
loddar commented
The problem is that markdown handles @
different when it's part of a (markdown) code block. Outside of a code block it's printed as '@'.
I've fixed this. So may be in the future version, you type only @ - that's it. The only necessary step is that Raffael ( @Abnaxos ) merge the pull request #64- funny, my pull request has the same number like the @ symbol ;-).
See the detailed description of the corresponding changes: