Giter VIP home page Giter VIP logo

intellij-tasks-navigate's Introduction

intellij-tasks-navigate

Plugin for IntelliJ Platform based IDEs.

Adds support for navigation from comments and any injection host (IntelliLang) to tasks (issues) in Web.

Plugin could be directly installed in any modern IntelliJ based IDE: IntelliJIDEA, Android Studio, RubyMine, PyCharm, WebStorm, PHPStorm, etc. Or from releases page.

Also see plugin page in IntelliJ plugins repository.

Usage

First you have to setup some tasks server in Settings | Tools | Tasks | Servers (YouTrack, Jira, GitHub or another server)

Example: YouTrack with https://youtrack.jetbrains.com url.

Navigation from comments

In Settings | Tools | Tasks | Navigation you can enable navigation from comments, so if you have any comment in code like

public class Example {
    public static void main(String[] args) {
        // IDEA-62743
    }
}

Ctrl+Click or Go to declaration on IDEA-62743 would open browser on https://youtrack.jetbrains.com/issue/IDEA-62743 page

Navigation from reference injection

IntelliJIDEA and other IDEs comes with preinstalled plugin 'IntelliLang'. It's quite useful to mark some string literals as containing some other languages or references to something.

This plugin adds 'Task Reference' reference injection, so for code

public class Example {
    public static void main(String[] args) {
        String task = "IDEA-62743";
        System.out.println(task);
    }
}

You could set caret on IDEA-62743 and add Task Reference reference using Inject language or reference intention.

Then Ctrl+Click or Go to declaration on IDEA-62743 would open browser on https://youtrack.jetbrains.com/issue/IDEA-62743 page

This feature better to be used with custom annotations (in Java):

Assume you have annotation

package util;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface TestFor {
    String[] issues() default {};
}

And you use it to annotate test classes or methods.

package tests;

public class TestClass {
    @util.TestFor(issues = {"IDEA-62743"})
    public String testSomething() {
        return myName;
    }
}

Once you Inject language or reference on any usage of TestFor#issues any other usage would also have such injection.

Also injection could be setup in setting and stored in project files, read IntelliLang documentation for more info.

Also quick documentation for string literals with injection is available.

Copyright

Copyright 2000-2015 JetBrains s.r.o.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.