你好，我叫凯拉，我开发了 hello my name is Kayla I developed the
臂IntelliJ插件，这个视频是 arm IntelliJ plugin and this video is
将给您概述 going to give you an overview into the
插件，它将向您展示如何 plug-in it's going to show you how to
安装它以及一些基本的 install it as well as some basic
我认为值得您使用的功能 features that I think will be worth your
开始的时候我们会想要 while to start off we're going to want
要获得IntelliJ IDEA，您可以得到 to get IntelliJ IDEA you can get that
从jetbrains com保留一件事 from jetbrains com one thing to keep in
介意IntelliJ实际上是开发的 mind is IntelliJ is actually developed
用于Java这是一种编程语言 for Java which is a programming language
但是它允许插件，但我们不 but it allows for plugins and we're not
实际上将使用Java部分 actually going to use the Java part so
真的不用担心 don't really don't worry about not
知道Java的人，可以去这里 knowing Java so go up to ites go here
您可以下载并运行 and you could download and run the
安装程序，您也要 Installer you're also going to want to
获取可在以下位置获得的Java get java which is available at the
oracle网站一定要得到JRE做 oracle website be sure to get the JRE do
无法获取jdk无法获取服务器 not get the jdk do not get the server
JRE让你们大多数人都坐飞机Jerry JRE get the plane Jerry most of you
可能已经有了，所以我不会 probably already have it so I wouldn't
真的很担心，但是IntelliJ会 really worry about it but IntelliJ will
告诉你是否没有它，因为它 tell you if you don't have it because it
在Java本身上运行，您还将 runs on Java itself you're also going to
想要获取IntelliJ插件jar want to get the IntelliJ plugin jar this
在说明中可用，并且 is available in the description and
这就是您所需要的，所以现在 that's all you're going to need so now
因为您已经安装了IntelliJ since you have IntelliJ installed you
安装了Java并且您已经 have Java installed and you've
下载了智能插件罐 downloaded the intelligent plugin jar
让我们继续运行I​​ntelliJ let's just go ahead and run IntelliJ the
第一次运行它不会 first time you run it it's not going to
很像它的启动方式 quite look like the way it launches for
我，因为我已经启动过一次 me because I've already launched it once
但这会给你一些基本的 but it's going to give you some basic
功能概述，并告诉您选择一个 feature overviews and tell you to pick a
风格或其他，但是在您先 style or whatever but after you first
打开它只是将其关闭 open it up just just close it out close
当前项目或其他 the current project or whatever and
您将进入屏幕，以便看到 you'll get to the screen so you can see
这是我以前的项目 right here are my previous projects
在创建任何项目之前 before we create any projects we're
想要去配置插件 going to want to go to configure plugins
你会发现有很多 and you can see there are a lot of
默认IntelliJ随附的插件 plugins that come with default IntelliJ
以及我已经做过的一些事情 as well as some things I've already
安装，但这些这些权利 installed but these these ones right
这些是这些来的 here are these ones right here came with
IntelliJ，因此单击安装插件从 IntelliJ so click install plugin from
磁盘，您将需要找到 disk and you'll want to locate
臂IntelliJ汽车，它不在那儿 the arm IntelliJ car and it's not there
好吧，我已经在这里了，所以 okay I already have it right here so it
会告诉您重新启动，可以 will tell you to restart which is okay
好了，现在我们准备创建一个 alright so now we're ready to create a
新项目，让我们继续进行创建 new project so let's go ahead and create
新项目，您可以在这里看到 new project and you can see right here
我们可以选择制造装甲 we have the option to make an armored
任务，但我要问你 mission but I'm going to ask you to
创建一个空项目，您可以 create an empty project you can make an
你可以基于一个项目 arma you can make a project based on
这个选项，但我认为它将是 this option but I think it'll it'll be
如果您选择空项目则更好 better if you choose empty project so
让我们继续前进 let's go ahead and give the punch the
我要把它给我们 name I'm just going to give it to us
正常登录，您可以更改路径 normal login and you can change the path
以及，但如果您选择 as well but if you do choose the
您可能要选择的权限 permission you might want to choose the
您的任务文件夹的实际根目录，以及 actual root of your mission folder and
这就是您将得到的，所以让我们开始吧 this is what you will get so let's go
继续并创建您没有的模块 ahead and create a module you don't have
从这里做，你可以从这里做 to do it from here you can do it from
归档新模块，然后单击 file new module and you'll want to click
手臂缓解，你会发现这是 arm remission you'll see that this is
非常不发达，但将会更多 very underdeveloped but it will be more
随着时间的流逝而发展，让我们继续前进 developed as time goes on let's go ahead
给它起一个我实际上要去的名字 and give it a name I'm actually going to
使用补品altis生活使命，您可以 use tonics altis life mission you can
找到您以前的任务，并 locate any of your previous missions and
要记住的一件事是 one thing to keep in mind is this
插件不允许您创建 plug-in doesn't allow you to yet create
您需要从头开始的任务 a mission from scratch you need to have
任务文件夹已经创建 the mission folder already created
通过编辑器，所以我会做所有 through the editor so i'll just do altis
生活内容路线是实际的地方 life content route is where the actual
文件是sqf文件，是头文件 files are the sqf files the header files
还有所有的爵士乐，但你想去 and all that jazz but you'll want to go
进入您的“我的文档”文件夹 into your My Documents folder that'll be
在si si用户上，您的名字然后是我的 on si si users your name and then my
文件，但我将文件移至我的 documents but I moved my documents to my
D盘，所以它就在您这里 D Drive so it will be right here you
想去军备 want to go to arma
或在任何地方装甲其他三个配置文件 or armor three other profiles wherever
您的个人资料是任务，这是我的 your profile is missions and here is my
任务文件夹，您将想成为 mission folder and you'll want to be
一定要做altis dot VR或其他 sure to do altis dot V R or some other
标有地图名称的点，您可以 dot that says the map name and you can
改变这个，但我要走了 change this but I'm just going to leave
它作为默认值，我们去了 it as default and there we go we have
任务就在这里，让我们开始吧 the mission right here so let's just go
提前开放一些任意平方英尺 ahead and open up some arbitrary sqf
文件，在这里我们可以看到 file and here we go you can see there's
许多突出显示不同的颜色 lots of highlighting different colors
这些都意味着我要去的事 these all mean something I'm going to go
这些，但首先我要去做 over those but first I'm going to do
你可能已经在做的事 something that you're already probably
想知道怎么做，那就是 wanting to know how to do and that is to
更改为深色主题，因为 change to the dark theme because looking
在白色的屏幕上可能会灼伤您的眼睛 at a white screen can burn your eyes for
相当长的时间，所以你想去 quite some time so you'll want to go to
设置外观和行为，以及 settings appearance and a behavior and
然后外观需要一段时间 then appearance this will take a while
加载我真的不知道为什么 to load I don't really know why it's
IntelliJ，但值得选择 IntelliJ but it's worth it and choose
黑暗的真主申请并繁荣它很好， dark Allah apply and boom it's nice and
黑暗将被修复，你也可以 dark that'll be fixed you can also
更改我喜欢使用的按键图 change the key map here I like to use
Eclipse这是我所使用的另一种IDE Eclipse it's a different IDE I'm just
习惯那些关键线，我可能会 used to those key lines I'll probably
参考Eclipse中的关键行 reference key lines that are in Eclipse
但默认情况下没有那么欺骗 but aren't in the default so deceptive
在这里滚动并尝试查找什么 scroll through here and try to find what
我正在尝试这样做，让我们继续前进， I'm trying to do so let's go ahead and
单击确定，这是一个黑暗的主题 click ok and here we are a dark theme
我忘了提的一件事是 one thing I forgot to mention is going
回到外观，你实际上可以 back to appearance you can actually
更改sqf和标头的颜色 change the colors of sqf and header for
那就去编辑颜色， that matter so go to editor colors and
字体，您将在其中看到armagh标头 fonts and you'll see armagh header in
Arma sqf是我的标题，用于HH PBP Arma sqf are my header is for HH PBP
那些类型的文件点尖叫是 those types of files dot scream which is
平方米EXT，因此您可以更改这些imma sqm EXT so you could change these imma
将其保留为默认设置，但您可以获得 leave them as default but you can get a
这些颜色分别是什么的想法 an idea of what each of these colors
对应于所以私有就是私有 correspond to so private is a private is
技术上是来自arma的关键字 a keyword technically from the arma
立场这是一个命令，但我设定 standpoint it is a command but I set
语言的一些标准，以便您 some standards for the language so you
将无法查找文档 won't be able to look up documentation
对于关键字，但这是一个命令 for keywords but this is a command this
是一个字符串，这是一个局部变量 is a string this is a local variable
魔术变量，你应该 magic variables you'll you should
可能把它们滑起来，如果你有一个音符 probably slip those up and a note if you
/ /注意它将注释变成蓝色 do / / note it'll turn the comment blue
这是标题的等效项， and here is the header equivalent and
拥有时的字符串表值 string table value that is when you have
字符串中的美元符号tablename字符串 dollar sign in a string tablename string
表键，让我们开始吧 table key for that matter so let's start
一些基本的功能 off with some basic features that I
认为您会找到最有用的 think you'll find the most useful so
让我们继续开放 let's go ahead and open up the
禁用文档禁用 documentation for disabled disabled
序列化让我们继续开放 serialization let's go ahead and open up
残疾人文档 the documentation for disabled
序列化我不能说这个词，如果 serialization I cannot say that word if
您按f2，这是Eclipse的默认设置 you push f2 which is the Eclipse default
你知道给你的文件和 you know give you the documentation and
您会意识到，这看起来很多 you'll realize that hey this looks a lot
像实际的一样，我们保留文档 like the actual we keep documentation
我会告诉你，那是因为 and I will show you and that is because
除了它是一个完全相同的东西 it is the exact same thing except it's a
我经历过的缓存版本 cached version I went through and
下载了数千个HTML文件， downloaded thousands of HTML files and
修剪下来并保存在 trimmed them down and saved them in the
插件，因此即使Wiki关闭 plugin so even if the wiki is down
您仍然会拥有文档和 you'll still have the documentation and
这些绿色链接对应于外部 these green links correspond to external
在浏览器中打开的链接，以及 links which opens up in the browser and
这些蓝色链接实际上对应于 these blue links actually correspond to
内部可用的链接 links that are available inside the
插件本身，因此您可以获得 plug-in itself so you can get
没有命令的文档 documentation for commands without
实际去维基是 actually going to the wiki ever which is
非常有用，如果您只是想 extremely useful and if you just want to
快速查找命令 do a quick look up for a command you
可以输入命令，比如说启用 could type the command let's say enable
拯救布什f2，你去了 saving Bush f2 and there you go you have
文档 the documentation
你可以在这里看到一些绿色的东西 you can see here some things are green
有些东西是蓝色的，然后单击此按钮 some things are blue and click this so
依此类推，当我输入 on and so forth and as i was typing that
您可能会看到自动完成 you probably saw the auto completion
弹出窗口，每个用户都可以使用 pop-up and this is available for every
在每个bis函数中获取命令 command in every bis function to get
自动完成bis功能 auto completes for a bis function you
想要输入所有大写字母bis下划线和 want to type all caps bis underscore and
我会弹出它，这是唯一的方法 i'll pop it up and that is the only way
得到它，因为我不想垃圾邮件 to get it because i did not want to spam
与数千人的对话 this dialogue thingy with thousands of
bis功能甚至在您不需要时 bis functions when you don't even need
知道他们存在，但是 to know they existed but the
文档的工作方式与您相同 documentation works the same way and you
也可以获取命令文档 can also get the command documentation
从这里开始，那是行不通的 from here and that isn't working for
有些奇怪的原因，那就是 some reason it's weird so that is the
文档的东西，所以我们知道如何 documentation thing so we know how to
查找文档，您也可以获取 look up documentation you can also get
内容可以帮助变量 content assist for variables as you can
看不到那些是 see no documentation for those that is
将来的版本中，所以我们知道 coming in a future version so we know
如何查找文档 how to look up documentation what about
找到合适的用法，让我们继续前进， finding usages well let's go ahead and
确实找到用法，正如您所见 do find usages and as you can see from
该文件的观点突出了每个 the file standpoint it highlights every
启动进度发生的发生 occurrence that start progress occurs
如果您按ctrl G，现在向我们显示 and if you push ctrl G now show us in
该变量所在的每个文件 every single file where that variable is
使用，您可以看到这仅用于 used and you can see this is only used
在平方尺，所以如果我要告诉补品 and in it sqf so if I were to tell tonic
说你可能只是本地化 says you probably just make it local
因为这绝对是没用的 because this is an absolute useless
可变的也许只是一个老 variable maybe it's just an older
与EST相同的版本 version same with EST this is just
浪费名称空间的基本版本 wasting the namespace basically version
信息只在这里你也可以做到 info is only in here you can also do it
在功能上，让我们继续开放 on functions let's go ahead and open up
另一个功能可能会 another function that will probably have
哦，亲爱的，不要使用宏，但是它们不会 oh dear do not use macros yet they don't
工作 work
抱歉，好的，让我们继续执行此操作 sorry okay so let's go ahead and do this
这是在其服务器融化这是 one this is in its server melt this is
仍然在这里哇，他们必须从 still in here wow they must be set from
里面，所以我想这是个好时机 inside so I guess this is a good time to
指出语法检查之一 point out the syntax checking one of the
最大的收获是 biggest things that'll get you is
分号，我的意思是那些 semicolons and I mean those truthfully
分号是此插件的一个bit子 semicolons are a bitch with this plug-in
那是因为语法和 and that is because of the grammar and
如果有的话，一切都区分大小写 everything is case sensitive if you have
所有大写字母，否则您必须将其更改为 all caps or you have to change it to
小写字母命令我们的驼色字母和 lowercase commands our camel case and
在那里我们停止抱怨，让我们开始吧 there we go stop complaining so let's go
提前找到这个用法啊，现在我们 ahead and find usages of this ah now we
有其他东西 have something that comes in another
现在文件仍然是同一个文件ctrl G file right now same file anyway ctrl G
找到用法，所以我们知道如何找到 find usages so we know how to find
变量的用法 usages for a variable what about
重命名并重命名所有用法 renaming it and renaming all the usages
如果您使用一些标准文字 if you're using some standard text
您必须找到并替换的编辑器 editor you'd have to find and replace in
每个文件都可能会很痛苦 every single file it may be a big pain
但是如果我们不想那样做 but what if we don't want to do that
如果我们只想放在一个文件中怎么办 what if we just want to be in one file
并重命名它，这就是 and rename it so this is something that
肯定出现在多个文件中 definitely occurs in more than one file
如您所见，这里的43种用法21 as you can see 43 usages in here 21
变量分配功能参数 variable assignments function parameter
经历每个过程都会很痛苦 it'd be a big pain to go through each
文件并使用IntelliJ重命名 file and rename this but with IntelliJ
它提供了一些快速简便的方式命名 it offers some quick and easy way naming
如果我们推动alt shift或我们做对了 if we push alt shift our or we do right
单击重构重命名，我们可以重命名 click refactor rename we can rename it
就在这里并重命名 right here and renamed everywhere
几乎到处都可以找到它 literally everywhere that it was found
它是 it was
命名，我们可以回头验证 named and we can verify it by going back
通过这里，看到它添加了一个 through here and seeing a it added an
额外地控制Z撤消那里 extra while and control Z to undo there
我们去，所以我们知道如何重命名变量 we go so we know how to rename variables
我们知道如何找到用法 we know how to find usages can we
实际上重命名功能是的，我们 actually rename functions well yes we
可以找到我们可以使用的功能的用法 can find usages for functions we can
也将它们全部重命名一次 also rename them all shift are once
再次没有功能 again there is not yet functionality to
更改即将传入的标签本身 change the tag itself that is coming in
将来的版本，但您可以重命名 a future version but you can rename it
并且还会在 and it will also rename it in the
说明txt，让我们看一下 description txt and let's see it's in
功能集H和要设置的功能 function set H and what function to be
重命名许可证价格 rename license price
我们去了，您可以看到它已重命名 there we go as you can see it renamed it
在这里，我们将其命名为 here and we named it back and there you
去所有的痛苦和沮丧是 go all of that pain and frustration is
缓解好了，让我们继续 alleviated all right so let's go ahead
并创建一个新的SQL文件，你可以做 and create a new SQL file you can do
通过alt插入或归档新的sqf文件 this via alt insert or file new sqf file
但是在我这样做之前，我要先导入 but before I do that I'm going to import
我一直在做的任务 mission that I've been working on for
一段时间了，但最终被放弃了 quite some time but eventually abandoned
我的宣教资本也公平吗 so are my mission capital we're fair
我们去 there we go
是 yes
所以这是我的任务 so here is a mission that I have
我知道这是发展的 developed this is something I know
比补品好，只有生活，所以让我们 better than tonic so just life so let's
继续并创建一个新的墨西哥文件 go ahead and create a new mexico file
这将告诉您您正在使用的文件 and this will tell you the file you're
目前在，所以如果你这样做 currently in so if you did this in
对话告诉您，让我们创建一个 dialogue tell you so let's just create a
我们去归档并称之为测试 let's go and file and call it test and
它创建它不会自动 it creates it it doesn't automatically
打开它，所以这是一个很好的空白 open it yet so this is a good nice empty
向您展示真正力量的地方 place to really show you the true power
这个插件的内容 of this plugin and that is content
协助字符串中的函数 assist with functions in the string
表，所以如果我们想调用一个函数 table so if we wanted to call a function
我们只有呼叫控制空间， we just have incall control space and
繁荣列出的每个功能 boom every single function listed in
配置功能在那里我们可以按 config functions is there we can press
f2并获取文档，我们可以 f2 and get the documentation and we can
点击此按钮，直接转到 click this button and go straight to the
文件本身，这是多么神奇 file itself how amazing is that and this
也是向您展示什么的好地方 is also a good place to show you what
到底是不是所有这些突出的意思 the heck does all this highlighting mean
因为它可能会进入您的 because it could probably get on your
神经真的很快，它会告诉你 nerves really fast this it'll tell you
局部变量未声明为私有 local variable is not declared private
函数内部的每个变量 every variable inside of a function
通常需要声明为私有 usually needs to be declared private
因为您可以从 because you can reference them from a
以前调用过的函数，所以如果您这样做 previously called function so if you do
Alta Pinter对不起，您可以 Alta Pinter excuse me you can
自动将其设为私有，为什么 automatically make it private and why
不重命名或不重命名，如果我们 not rename it or not rename it and if we
撤消再次将其放置 undo that once again it will place it
返回，您将在这里看到此变量 back and you'll see here this variable
现在尚未使用 is unused now there's not yet feature to
自动删除它，所以我们已经 automatically delete that so we've
自动真正清理我们的代码 automatically really cleaned up our code
确保它没有错误，所以这与 make sure it's bug-free so that's a with
打电话给你也可以生成它 call you can also do spawn and it does
文档中的相同内容 the same thing in the documentation it
是文件中的第一条评论 is the first comment in the file just so
你知道你也可以做内容协助 you know you can also do content assist
与本地化，你们要 with localized and you guys are going to
害怕这个本地化 freak out with this localize
控制空间和所有字符串表 control space and all the string table
条目在这里f2里面，我告诉 entries are inside here f2 and I'll tell
您每次输入原文为英文 you each entry the original the English
要注意的重要事项是 lodge as an important thing to note is
这些XML东西必须大写 these XML things have to be capitalized
他们不能只是小写 they cannot be lower case that is just
XML API，直到j the thing with the XML API and until j
它有项目资本的资本p it has the capital p for project capital
包大写密钥大写ID和所有 package capital key capital ID and all
这些东西，所以将其本地化 that stuff so localize something it will
自动将所有引号 automatically put the quotes all that
痛苦和挫败感也消失了 pain and frustration is gone this also
适用于标头，因此美元将快速上涨 works for header so dollar boom next up
让我们做一些内容辅助 let's do some content assist for
我认为只是一个命令 commands that I think are just a
很多时候很方便的事情 something handy to have a lot of times
您只想正确打印一个值 you just want to print out a value right
下线不是排序的行号 down the line not line number that sort
的东西，所以如果你暗示你可以看到 of stuff so if you do hint you can see
一些实际上不是的东西 some things that aren't actually
命令，但是你可以做的事情 commands but are things that you could
使用这样的提示argh它将所有这一切 use so hint argh it'll place all this
文字，您只需输入一些即可打印 text and you just type in some to print
你知道的论点和价值观 an argument and value you know just
打印在那里输入的内容并点击 print whatever you type in there and hit
行将只打印当前行 line will just print the current line
数字和所有这些东西，我认为 number and all that stuff and I think
这就是全部，因此可用于 that's all of it so that's available for
如果还有，那么你知道 that there's also if then you know
如果退出自动输入 automatically type that if exit so that
打字要少很多 is a lot less typing you'll have to do
所以我认为这是视频的总结 so I think that wraps up this video it
很好地显示了所有 pretty well shows all the all the
该插件内部的功能 functionality inside this plugin that
该视频目前存在 currently exists this video has been
有点粗糙，但我想你会发现 kind of rough but I think you'll find
这个插件很有用 this plug-in very useful there may be
语法上的一些错误，所以您可能会 some bugs with the grammar so you may be
输入一些您可能会喜欢的东西 typing some things that you may what you
可能期望像T这样的语法错误 may expect to be a syntax error like T
等于禁用的AI加禁用的1倍 equals disabled AI plus 1 times disabled
像您想的那样序列化 serialization like you would think
糖尿病质地不对 diabetes in texture right it doesn't
有任何意义，但重要的是 make any sense but it's important to
记住有一张罪恶税支票 remember that there is a sin tax check
但是没有禁用类型检查是一件很简单的事情 but not a type check disabled is a shin
导致没有类型但没有类型 results in no type but there is no type
检查是否有语法检查 checking there is syntax checking
但是，如果我们在这里做一个说 however so if we did one here and say
嘿，我期待什么 hey what the heck I was expecting an
运算符之类的东西，即使不是 operator or something even if it doesn't
有任何意义，以便好好总结 make any sense so that well wraps up
这部影片让我的结肠再次如此，我的视锥细胞 this video so my colon again so my cones
会得到你的，仅此而已 will get you so that that's it for this
视频感谢您的收看，我希望 video thank you for watching and I hope
您会发现此插件非常有用，并且 you find this plug-in very useful and
最后一件事 one last thing
如果你去武装一个插件是我的颜色 if you go to arm a plug-in are my color
选择器，您会得到这个不错的实用程序 picker you get this nice utility to get
您可以拥有的arma 3的颜色值 color values for arma 3 you can have
三种不同图像的选择黄金 selection of three different images gold
蜂鸟所有的东西，你可以 hummingbird all that stuff and you can
选择一种颜色，您也可以输入 choose a color you can also type in the
值本身并从字段设置颜色 values itself and set color from fields
然后你去 and there you go