When you copy ( Control+C) or cut ( Control+X) a line without any code selected, the paste action will add the contents of the clipboard to above the current line, not at your caret. If you need to paste just plain text, press Control+Alt+Shift+V. If nothing is selected, IntelliJ IDEA automatically copies as is the whole line where the caret is located.īy default, when you paste anything in the editor, IntelliJ IDEA performs "smart" paste, for example, pasting multiple lines in comments will automatically add the appropriate markers to the lines you are pasting. You can use the icons on the toolbar to hide or restore the details' pane, access the Package Search settings, and manipulate the tool window.You can use the standard shortcuts to copy Control+C and paste Control+V any selected code fragment. Supported Kotlin or Multiplatform platforms if it is a KMP dependency This information is available only for the installed dependencies and filtered ones based on the selection in the dependencies list. ![]() GitHub information if the dependency sources are hosted on GitHub and also Readmeĭependency website and a link to the documentation The authors of the dependency if the names are available Repository or repositories in which the dependency is available The dependency details' pane displays the following information about the selected dependency:ĭependency description if it is available Press Control+Alt+S to open the IDE settings and then select Build, Execution, Deployment | Package Search.įrom the options on the left, edit the needed build tools section and click OK to save the changes. You can use the Package Search settings to configure additional options for the behavior of the Package Search plugin. IntelliJ IDEA copies the dependency to a clipboard. In the dependency's details pane, right-click the library name and its coordinates and select Copy. In the Dependencies tool window, select a package you want to copy. IntelliJ IDEA removes the dependency from the selected module. Select the dependency you want to remove and in the dependency's details pane, click and select Remove. To remove a dependency from the whole project, select All Modules. In the Dependencies tool window, select a module from which you want to remove a dependency. If you select the Kotlin multiplatform option, IntelliJ IDEA will display only the Kotlin multiplatform dependencies. Otherwise, IntelliJ IDEA displays the latest possible version and you can click Upgrade to change it. If you select the Only stable checkbox, IntelliJ IDEA will exclude any dependencies that have no stable versions, and hide them from the list. In the Dependencies tool window, locate the dependency for which you want to change the version.Ĭlick the drop-down version selection list and select the needed version. However, keep in mind that if you specify a non-existing configuration in the settings, it won't be generated in your build script file. The settings also contain scopes you use in your build script file. The available scopes can be configured in the Package Search settings. The names of scopes are based on the build tool with which you are working. ![]() You can select a scope for which you want to add your package. In the list of search results, locate the package you want to add. In the search field, start typing your query. To add a dependency for the whole project, select All Modules. ![]() In the Dependencies tool window, select a module for which you want to add a dependency. You can use the Dependencies tool window to add, remove, and update packages. For more information, refer to Dependency details pane. The searching requires an internet connection, as it uses the Package Search backend.įor each dependency IntelliJ IDEA displays information such as the source code links, activity on StackOverflow, GitHub, and all accessible directly with links from the entry. The dependencies with a light blue background are your search results. IntelliJ IDEA only shows direct dependencies that you explicitly declared. For more information about what is supported, refer to Package Search build system support limitations.ĭependencies with a white background are the installed ones. The Dependencies tool window becomes available when the current project has at least one supported module. The Dependencies tool window provides a list of modules you have as well as a list of all currently installed packages in your project. In the Dependencies tool window, search for the dependency you need, select it in the list of search results and click Add. Press Alt+Insert and in the list that opens, select Add dependency. Invoke package searchĭepending on a build tool in your project, open the appropriate build script in the editor. You can use the Dependencies tool window to work with dependencies. It is supported for main build tools such as Maven, Gradle, and sbt. Package Search lets you search, evaluate, and manage dependencies inside the IDE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |