CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Visual Studio Code and the CCS compiler
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
pgvt



Joined: 17 Aug 2024
Posts: 8

View user's profile Send private message

Published
PostPosted: Fri Nov 15, 2024 4:25 pm     Reply with quote

https://marketplace.visualstudio.com/items?itemName=pgvt.picc-ccs-support

Reminder:
It is a non-official and non-affiliated with CCS thing!
The work was done 85% by AI on a quick manner rather for my personal use.
Use it on your risks.

The official PCW IDE has a lot of specific features like new project wizards with huge time-saving startup benefits, and help integrations, that this extension cannot substitute.

Features:
-VSCode IntelliSense features (code completion, parameter info, quick info, member lists)
-Compile / Clean as Tasks
-See and navigate to lines with Errors / Warnings / Information at PROBLEMS window
-Contextual Help (ccsc.chm) by right-click over a word in code

For further ideas, development etc. please comment here.
pet007



Joined: 25 Jan 2023
Posts: 22

View user's profile Send private message

PostPosted: Sat Mar 01, 2025 1:18 am     Reply with quote

Yes, the CCS plugin mentioned above works well. For me, "IntelliSense-based" shortcuts and features are a "must-have" nowadays.
For example, ALT + left/right arrows, proper member access when passing a pointer to a function, and all the other features common in CubeIDE/Eclipse are essential if you're writing code seriously.
I'm sorry, but the CCS IDE feels heavily outdated. :(
temtronic



Joined: 01 Jul 2010
Posts: 9445
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Mar 01, 2025 6:25 am     Reply with quote

After you've used it for 2+ decades, it won't feel 'outdated' rather an extension of your body and soul and you'll appreciate it more !
pgvt



Joined: 17 Aug 2024
Posts: 8

View user's profile Send private message

Thanks
PostPosted: Sat Mar 01, 2025 2:01 pm     Reply with quote

After >400 installs finally a word here. Smile
I'm glad I am helping you to enjoy more this great compiler.
henrry_std3



Joined: 06 Mar 2025
Posts: 3

View user's profile Send private message

PostPosted: Sat Mar 08, 2025 1:51 am     Reply with quote

It looks amazing man! Now I will work much better with CCS in VS Code. Thanks for this outstanding extension!!
JeromePeters



Joined: 21 Mar 2025
Posts: 1

View user's profile Send private message

Re: Here you go:
PostPosted: Fri Mar 21, 2025 6:21 am     Reply with quote

pgvt wrote:
1. Create a sub-folder ./vscode and place inside:
2. A new file named tasks.json with contents:
Code:

{
  "version": "2.0.0",
  "inputs": [
    {
      "id": "picFlavor",
      "type": "pickString",
      "description": "Select: +FH(PIC18), +FB(PIC12), +FM(PIC16) or +FD(PIC24)",
      "options": ["+FH", "+FB", "+FM", "+FD"],
      "default": "+FH"
    }
  ],
  "tasks": [
    {
      "label": "Build Project by PICC",
      "type": "shell",
      "command": "C:\\Program Files (x86)\\PICC\\ccscon.exe",
      "args": [
        "-M", "-T", "-A", "-Z",
        "${input:picFlavor}",
        "+EA", "+P02", "+J", "+STDOUT", "+O8hex",
        "${file}"
      ],
      "presentation": {
        "echo": true,
        "revealProblems": "onProblem",
        "reveal": "always",
        "focus": false,
        "panel": "shared",
        "showReuseMessage": false,
        "clear": true
      },
      "group": {
        "kind": "build",
        "isDefault": true
      },
      "problemMatcher": {
        "owner": "custom",
        "fileLocation": ["absolute"],
        "pattern": {
          "regexp": "^(.*):(\\d+):(\\d+):\\s+(Info|Error|Warning)#(\\d+)\\s+(.*)$",
          "file": 1,
          "line": 2,
          "column": 3,
          "severity": 4,
          "code": 5,
          "message": 6
        }
      }
    }
  ]
}

3. Also a new file named settings.json with contents:
Code:
{
    "C_Cpp.errorSquiggles": "disabled",
    "C_Cpp.codeAnalysis.clangTidy.checks.disabled": [
        "clang-diagnostic-error"
    ]
}

4. Also a new file named c_cpp_properties.json with contents:
Code:

{
    "configurations": [
        {
            "name": "PICC",
            "includePath": [
                "${workspaceFolder}/**",
                "C:\\Program Files (x86)\\PICC\\Devices",
                "C:\\Program Files (x86)\\PICC\\Drivers"
            ],
            "defines": [
               
            ]
        }
    ],
    "version": 4
}
//https://code.visualstudio.com/docs/editor/variables-reference


5. Download latest vscode and ... patience to load everything ...

6. Optional: For fast access you can create a shortcut to vscode with modifying the Target: field this way:
Code:
"C:\Users\<yourusername>\AppData\Local\Programs\Microsoft VS Code\Code.exe" "C:\your project absolute path"

link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link
link



Thanks you!
pgvt



Joined: 17 Aug 2024
Posts: 8

View user's profile Send private message

Re: Here you go:
PostPosted: Fri Mar 21, 2025 6:51 am     Reply with quote

JeromePeters wrote:
pgvt wrote:
...

Hi JeromePeters, you can simply and better, install the latest version from here and see the other functions like help on F1. Same as visiting this:
https://marketplace.visualstudio.com/items?itemName=pgvt.picc-ccs-support
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group