Hi all, is this how to enable code autocomplete/sn...
# sdf
d
Hi all, is this how to enable code autocomplete/snippet in IDE like for example vscode ? Anyone successfully implement it, i'm not clear on the instruction in step 4, as when i downloaded the file, it's a folder with .js files inside.
n
Are you clicking on that thing top right in the RED BOX? @dennysutanto
d
if you use vscode, I would suggest using this instead: https://github.com/headintheclouddev/typings-suitescript-2.0 (you do not need to be using TypeScript can still use plain JS, just need to setup a similar jsconfig.json file)
❤️ 1
d
@NElliott yes, i clicked on that red box, but the above is just a screen shot from NS Help page
n
Appreciated, just checking you weren't downloading the SuiteScript folder 👍
d
thanks for the input @dbarnett i will also try that. I have the suitecloud extension for VS code installed, but i guess that does not provide snippet / code completion capability right ?
noted @NElliott
have you ever tried to use the suitescript Library in any IDE @NElliott?
n
I did that whole manual dance with Eclipse years ago. No need if you use WebStorm which is what I've used for a number of years now
d
ic ic
unfortunately i don't have webstorm, i have VS code only
d
@dennysutanto no, it does not have anything to do with the suitecloud vscode extension - which does not itself provide any intellisense in vscode
d
ok noted @dbarnett
btw have you ever tried using the Suitescript Library as in my screenshot above with VS Code @dbarnett ?
d
this is my jsconfig:
Copy code
{
  "compilerOptions": {
    "target": "es5",
    "module": "amd",
    "moduleResolution": "node",
    "checkJs": true,
    "baseUrl": ".",
    "paths": {
      "N": [
        "node_modules/@hitc/netsuite-types/N"
      ],
      "N/*": [
        "node_modules/@hitc/netsuite-types/N/*"
      ]
    }
  },
  "exclude": [
    "node_modules"
  ]
}
should be able to essentially copy, the key important bit is checkJs if I recall, since not truly using TS
and yes, technically you can get semi-working w/ just that SuiteScript provided in NS fileCabinet, but what is provided by that gitHub repo is infinitely better
d
thanks for your input @dbarnett