想在 Visual Studio Code 里进行 ABAP 开发,需要安装这些 VS Code 扩展:
- ABAP Remote FileSystem
- ABAP Syntax Highlighting
- ABAP CDS Language Support
- ABAP Snippets
安装完毕后,我们可以将 SAP 系统配置为 Visual Studio Code 连接的远程文件系统。
为了连接到 SAP 系统,需要启用 ABAP 开发工具 (ADT) ICF 节点,这与 SAP Hana Studio 等工具使用的服务相同。
打开 SAP GUI 并连接到目标系统,运行事务 SICF,然后激活 ADT_SRV 服务,如下所示。
这启用了允许代码编辑器和 IDE 连接到 SAP 系统的服务。
配置 Visual Studio Code 的 ABAP Remote File system 以连接到 SAP 系统,使用快捷键 Control/Command +
打开 VS Code 设置,在菜单中选择 Extensions
,然后在 ABAP-FS
插件中,单击 Edit in settings.json
.