![golang filewatcher golang filewatcher](https://image-cdn.xiaozhibo.com/test/5c1a11d8f1c7ec0001612c9d.png)
- #Golang filewatcher install#
- #Golang filewatcher full#
- #Golang filewatcher code#
- #Golang filewatcher windows#
When specifying the arguments, follow these rules: Type the macros manually or click and select the relevant pattern fom the list in the Macros dialog that opens. In the Arguments field, define the arguments to pass to the tool.Īrguments are usually specified using macros, for example, $FileName$ or $FileNameWithoutExtension$, that will be replaced with actual file names. Alternatively, to use a relative path, add its parent folder to the GoLand path variables on the Appearance & Behavior | Path Variables page of the IDE settings Ctrl+Alt+S. To use a jar archive, specify the absolute path to it.
#Golang filewatcher full#
To use the program filename instead of its full path, add the path to its folder to the system environment variable PATH. bat, or other depending on the specific tool). In the Program field, specify the path to the executable file of the tool (. In the Tool to run on changes area, specify the tool to use, the arguments to pass to it, the expected output file types, and so on. Module: all the files in the current module.Ĭurrent File: the file opened in the active editor tab.Īll Changed Files: all changed files, that is, all files associated with all existing changelists.ĭefault Changelist: all the files associated with the changelist Default.Īlternatively, click and configure a custom scope in the Scopes dialog that opens.Ĭonfiguring interaction with the external tool Recently Changed Files: all the files that recently changed in the editor. Recently Viewed Files: all the files that were recently viewed in the editor.
#Golang filewatcher windows#
Scratches and Consoles: all the scratches and consoles in the Files tool window ( View | Tool Windows | Files). Project Files: all the files within the project For a project-level File Watcher, you can also click to configure a custom scope in the Scopes dialog that opens. Select one of the predefined scopes from the list. Select the Scope in which the File Watcher is applicable.Ĭhanges in these files will invoke the File Watcher either immediately or upon save or frame deactivation, depending on the status of the Auto-save edited files to trigger the watcher checkbox. File types are recognised based on associations between file types and file extensions.īy default, the field shows the file type in accordance with the chosen predefined template. The File Watcher will consider only files of this type as subject for analyzing and processing.
![golang filewatcher golang filewatcher](https://image-cdn.xiaozhibo.com/pre/5be14c17a624cc0001908d48.png)
Use the controls in the Files to watch area to define the range of files where you want to apply the File Watcher.įrom the File type list, choose the expected type of input files. By default, GoLand suggests the name of the selected predefined template.Ĭonfiguring the expected type and location of input files In the Name field, type the name of the File Watcher. To use a tool that is not on the list, choose Custom. The choice depends on the tool you are going to use. The File Watchers page opens showing a list of File Watchers that are already configured in this project and in the IDE.Ĭlick and choose the predefined template from which you want to create a File Watcher. In the Settings/Preferences dialog ( Ctrl+Alt+S), click File Watchers under Tools.
#Golang filewatcher install#
Note that using some of these tools in GoLand requires that you install plugins on the Settings/Preferences | Plugins page as described in Installing plugins from JetBrains repository. You cannot modify the list of predefined templates.įor information on File Watchers for specific tools, see the corresponding pages: The following image lists predefined templates for file watchers. A configured File Watcher can be saved in your project settings or in the IDE settings and used in different projects. You can use one of the available templates or configure a File Watcher from scratch. The File Watcher problems inspection is invoked by a running File Watcher and highlights errors specific to it. If the project has no relevant File Watcher configured, GoLand suggests to add one.
![golang filewatcher golang filewatcher](https://img2018.cnblogs.com/blog/830561/201810/830561-20181015172250991-1205934887.png)
The File Watcher available inspection is run in every file where a predefined File Watcher is applicable.
#Golang filewatcher code#
File Watcher is a GoLand tool that allows you to automatically run a command-line tool like compilers, formatters, or linters when you change or save a file in the IDE.įile Watchers have two dedicated code inspections: