关闭“由...创建"在IntelliJ中生成文件时标记 [英] Turning off "created by" stamp when generating files in IntelliJ

查看:70
本文介绍了关闭“由...创建"在IntelliJ中生成文件时标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到这个选项.例如,当我创建一个新的Scala类时,此文本将放置在文件中:

I can't find an option for this. For example, when I create a new Scala class, this text is placed in the file:

/**
 * Created by ben on 6/23/14.
 */

推荐答案

在IntelliJ 13及更高版本中,它位于设置对话框的File and Code Templates区域中.在Idea 15+中,您可以通过在Windows上键入 ctrl + shift + A cmd + shift + A ,然后在弹出的动作搜索对话框中键入Include Templates.应该有一个名为Includes的选项卡,您可以在其中找到Java和ActionScript文件类型,并且可以根据需要完全删除文本.

In IntelliJ 13 and above it is in the File and Code Templates area of the settings dialog. In Idea 15+ you can get there by typing ctrl+shift+A on windows or cmd+shift+A on osx and then typing Include Templates in the popup action search dialog. There should be a tab called Includes on which you will find the Java and ActionScript file types, and the text can simply be removed completely if you like.

但是,在IntelliJ的最新版本中,事情变得容易得多.第一次生成这些东西时,将光标放在生成的注释中,然后按 alt - enter (或根据您的键映射首选项而定的等效项)以调出单击修复"选项,然后选择编辑模板".这将使您直接进入需要更新的设置.只需删除所有文本(或将其替换为更适合您的内容),然后按 enter ,即可完成操作.

But, in more recent versions of IntelliJ things have got quite a bit easier. The first time it generates this stuff, put your cursor in the generated comments and hit alt-enter (or the equivalent according to your key-mapping preferences) to bring up the 'fix' options, and select 'edit template'. This will bring you right to the setting that needs to be updated. Simply remove all the text (or replace it with something more palatable to you), hit enter and you're done.

这篇关于关闭“由...创建"在IntelliJ中生成文件时标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆